File tree Expand file tree Collapse file tree 7 files changed +10
-9
lines changed Expand file tree Collapse file tree 7 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 7575 install :
7676 - *upgrade_python_toolset
7777 - *install_deps
78- - pip install --upgrade "mypy >= 0.700 "
78+ - pip install --upgrade "mypy >= 0.720 "
7979 script :
8080 - python setup.py --version
8181 - mypy --strict exec_helpers
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ Extras:
8484
8585* ``lxml `` - install `lxml ` for advanced XML parsing. Can be unsafe.
8686
87- * ``ALL_FORMATS `` - install all parsers. When new parsers will be added, it will ne also supported.
87+ * ``ALL_FORMATS `` (`` all-formats ``) - install all parsers. When new parsers will be added, it will ne also supported.
8888
8989Usage
9090=====
Original file line number Diff line number Diff line change 7474 python -m pip install --upgrade pip
7575 pip install -U setuptools
7676 pip install -r CI_REQUIREMENTS.txt
77- pip install -U "mypy>=0.700 "
77+ pip install -U "mypy>=0.720 "
7878 displayName: 'Install dependencies'
7979
8080 - script : |
Original file line number Diff line number Diff line change @@ -53,12 +53,12 @@ def stdin(self) -> typing.Optional[asyncio.StreamWriter]: # type: ignore
5353 return super (SubprocessExecuteAsyncResult , self ).stdin
5454
5555 @property
56- def stderr (self ) -> typing .Optional [asyncio . StreamReader ]: # type: ignore
56+ def stderr (self ) -> typing .Optional [typing . AsyncIterable [ bytes ] ]: # type: ignore
5757 """Override original NamedTuple with proper typing."""
5858 return super (SubprocessExecuteAsyncResult , self ).stderr
5959
6060 @property
61- def stdout (self ) -> typing .Optional [asyncio . StreamReader ]: # type: ignore
61+ def stdout (self ) -> typing .Optional [typing . AsyncIterable [ bytes ] ]: # type: ignore
6262 """Override original NamedTuple with proper typing."""
6363 return super (SubprocessExecuteAsyncResult , self ).stdout
6464
Original file line number Diff line number Diff line change 3535except ImportError :
3636 yaml = None # type:ignore # pylint: disable=invalid-name
3737try :
38- import ruamel .yaml as ruamel_yaml # type: ignore
38+ import ruamel .yaml as ruamel_yaml
3939except ImportError :
40- ruamel_yaml = None # pylint: disable=invalid-name
40+ ruamel_yaml = None # type:ignore # pylint: disable=invalid-name
4141try :
4242 import defusedxml .ElementTree # type: ignore
4343except ImportError :
Original file line number Diff line number Diff line change @@ -266,7 +266,8 @@ def get_simple_vars_from_src(src):
266266 "xml" : XML_DEPS ,
267267 "lxml" : LXML_DEPS ,
268268 "yaml" : YAML_DEPS ,
269- "ALL_FORMATS" : XML_DEPS + LXML_DEPS + YAML_DEPS
269+ "all_formats" : XML_DEPS + LXML_DEPS + YAML_DEPS ,
270+ "all-formats" : XML_DEPS + LXML_DEPS + YAML_DEPS ,
270271 },
271272 package_data = {"exec_helpers" : ["py.typed" ]},
272273)
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ commands = pipdeptree
107107
108108[testenv:mypy]
109109deps =
110- mypy>=0.700
110+ mypy>=0.720
111111 -r{toxinidir}/CI_REQUIREMENTS.txt
112112commands =
113113 python setup.py --version
You can’t perform that action at this time.
0 commit comments