You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the new version of mypy, ignite/handlers/checkpoint.py and ignite/utils.py has some errors related to typing.
ignite/utils.py:161: error: unused "type: ignore" comment
existing = name is None or name in logging.root.manager.loggerDict...
^
ignite/handlers/checkpoint.py:9: error: unused "type: ignore" comment
from tempfile import _TemporaryFileWrapper # type: ignore[attr-define...
^
ignite/handlers/checkpoint.py:695: error: Incompatible types in assignment
(expression has type "None", variable has type "_TemporaryFileWrapper")
[assignment]
tmp = None # type: _TemporaryFileWrapper
^
ignite/handlers/checkpoint.py:697: error: Incompatible types in assignment
(expression has type "IO[bytes]", variable has type "_TemporaryFileWrapper")
[assignment]
tmp = tempfile.NamedTemporaryFile(delete=False, dir=se...
^
Found 4 errors in 2 files (checked 98 source files)
Environment
Ignite Version (e.g., 0.3.0): Current master branch
OS (e.g., Linux): Linux
How you installed Ignite (conda, pip, source): source
Python version: 3.8.6
Any other relevant information:
mypy version: mypy-0.901-cp38-cp38-manylinux2010_x86_64
The text was updated successfully, but these errors were encountered:
🐛 Bug description
With the new version of mypy, ignite/handlers/checkpoint.py and ignite/utils.py has some errors related to typing.
Environment
conda
,pip
, source): sourcemypy version: mypy-0.901-cp38-cp38-manylinux2010_x86_64
The text was updated successfully, but these errors were encountered: