Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Bump mypy from 0.950 to 0.960 (#5639)
Browse files Browse the repository at this point in the history
* Bump mypy from 0.950 to 0.960

Bumps [mypy](/~https://github.com/python/mypy) from 0.950 to 0.960.
- [Release notes](/~https://github.com/python/mypy/releases)
- [Commits](python/mypy@v0.950...v0.960)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Make mypy happy

* New pin needed

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dirk Groeneveld <dirkg@allenai.org>
  • Loading branch information
dependabot[bot] and dirkgr authored May 26, 2022
1 parent 39b3c96 commit 8b5ccc4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion allennlp/common/cached_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def strip_prefix(s):
elif all(isinstance(x, str) for x in reinit_modules):
for regex in reinit_modules:
for name, module in transformer.named_modules():
if re.search(regex, name):
if re.search(str(regex), name):
module.apply(transformer._init_weights)
else:
raise ValueError(
Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
flake8

# Static type checking
mypy==0.950
mypy==0.960

# Automatic code formatting
black==22.3.0
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ base58
# Spacy depends on typer, and typer had a bug. This is how we make sure we get the fixed version of typer.
typer>=0.4.1

# Protobuf is a dependency of wandb and tensorboard, but they are missing this pin.
protobuf<=3.20.0

##################################################
###### Extra dependencies for integrations #######
##################################################
Expand Down

0 comments on commit 8b5ccc4

Please sign in to comment.