Update mypy to version 1.0.0 (#79963)

pull/79980/head
Matt Clay 2 years ago committed by GitHub
parent d47a848219
commit 71f2e777ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -223,14 +223,14 @@ imap = map
try: try:
# Python 2 # Python 2
unicode # type: ignore[has-type] # pylint: disable=used-before-assignment unicode # type: ignore[used-before-def] # pylint: disable=used-before-assignment
except NameError: except NameError:
# Python 3 # Python 3
unicode = text_type unicode = text_type
try: try:
# Python 2 # Python 2
basestring # type: ignore[has-type] # pylint: disable=used-before-assignment basestring # type: ignore[used-before-def,has-type] # pylint: disable=used-before-assignment
except NameError: except NameError:
# Python 3 # Python 3
basestring = string_types basestring = string_types

@ -30,7 +30,7 @@ if HAS_YAML:
except (ImportError, AttributeError): except (ImportError, AttributeError):
from yaml import SafeLoader # type: ignore[assignment] from yaml import SafeLoader # type: ignore[assignment]
from yaml import SafeDumper # type: ignore[assignment] from yaml import SafeDumper # type: ignore[assignment]
from yaml.parser import Parser # type: ignore[misc] # pylint: disable=unused-import from yaml.parser import Parser # type: ignore[assignment] # pylint: disable=unused-import
yaml_load = _partial(_yaml.load, Loader=SafeLoader) yaml_load = _partial(_yaml.load, Loader=SafeLoader)
yaml_load_all = _partial(_yaml.load_all, Loader=SafeLoader) yaml_load_all = _partial(_yaml.load_all, Loader=SafeLoader)

@ -19,7 +19,7 @@ except Exception: # pylint: disable=broad-except
try: try:
cast cast # type: ignore[used-before-def]
except NameError: except NameError:
def cast(typ, val): # type: ignore[no-redef] def cast(typ, val): # type: ignore[no-redef]
return val return val

@ -1,19 +1,19 @@
# edit "sanity.mypy.in" and generate with: hacking/update-sanity-requirements.py --test mypy # edit "sanity.mypy.in" and generate with: hacking/update-sanity-requirements.py --test mypy
cffi==1.15.1 cffi==1.15.1
cryptography==39.0.0 cryptography==39.0.1
Jinja2==3.1.2 Jinja2==3.1.2
MarkupSafe==2.1.2 MarkupSafe==2.1.2
mypy==0.991 mypy==1.0.0
mypy-extensions==0.4.3 mypy-extensions==1.0.0
packaging==23.0 packaging==23.0
pycparser==2.21 pycparser==2.21
tomli==2.0.1 tomli==2.0.1
types-backports==0.1.3 types-backports==0.1.3
types-docutils==0.19.1.2 types-docutils==0.19.1.3
types-paramiko==2.12.0.3 types-paramiko==3.0.0.2
types-PyYAML==6.0.12.3 types-PyYAML==6.0.12.5
types-requests==2.28.11.8 types-requests==2.28.11.12
types-setuptools==65.7.0.3 types-setuptools==67.2.0.1
types-toml==0.10.8.1 types-toml==0.10.8.3
types-urllib3==1.26.25.4 types-urllib3==1.26.25.5
typing_extensions==4.4.0 typing_extensions==4.4.0

Loading…
Cancel
Save