From 9ad26be665d3d554e1f3aeb66ba14285536dabc7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 25 May 2022 13:04:57 +0000 Subject: [PATCH 1/3] 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](https://github.com/python/mypy/compare/v0.950...v0.960) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- dev-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index ff9d591629d..177ebe04d58 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -4,7 +4,7 @@ flake8 # Static type checking -mypy==0.950 +mypy==0.960 # Automatic code formatting black==22.3.0 From 1529fbd4c16518522e4881f4db7a4809fba41fd2 Mon Sep 17 00:00:00 2001 From: Dirk Groeneveld Date: Wed, 25 May 2022 17:49:22 -0700 Subject: [PATCH 2/3] Make mypy happy --- allennlp/common/cached_transformers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allennlp/common/cached_transformers.py b/allennlp/common/cached_transformers.py index 3177faa2ab8..5ca0d4b8254 100644 --- a/allennlp/common/cached_transformers.py +++ b/allennlp/common/cached_transformers.py @@ -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( From 5b407faa9af7d6b724d6d2615b5f47ade3353d22 Mon Sep 17 00:00:00 2001 From: Dirk Groeneveld Date: Wed, 25 May 2022 18:22:36 -0700 Subject: [PATCH 3/3] New pin needed --- requirements.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/requirements.txt b/requirements.txt index c307d89d2ac..369246adc51 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 ####### ##################################################