8000 Bump mypy from 0.950 to 0.960 by dependabot[bot] · Pull Request #5639 · allenai/allennlp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Bump mypy from 0.950 to 0.960 #5639

Merged
merged 5 commits into from
May 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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