Skip to content

Commit

Permalink
Update mypy to work with recent Torch versions
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldk committed Feb 7, 2024
1 parent b3f4f47 commit a289e4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pytest-cov>=2.7.0,<5.0.0
coverage>=5.0.0,<8.0.0
mock>=2.0.0,<3.0.0
flake8>=3.5.0,<3.6.0
mypy>=1.0.0,<1.1.0; python_version >= "3.7"
mypy>=1.5.0,<1.6.0; platform_machine != "aarch64" and python_version >= "3.8"
types-mock>=0.1.1
types-contextvars>=0.1.2; python_version < "3.7"
types-dataclasses>=0.1.3; python_version < "3.7"
Expand Down
2 changes: 1 addition & 1 deletion thinc/shims/torchscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class TorchScriptShim(PyTorchShim):

def __init__(
self,
model: Optional["torch.ScriptModule"],
model: Optional["torch.jit.ScriptModule"],
config=None,
optimizer: Any = None,
mixed_precision: bool = False,
Expand Down

0 comments on commit a289e4a

Please sign in to comment.