Skip to content

Commit c198199

Browse files
committed
Bump mypy version
1 parent c0b985c commit c198199

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

domdf_python_tools/import_tools.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,7 @@ def discover(
102102
matching_objects = discover_in_module(package, **kwargs)
103103

104104
if hasattr(package, "__path__"):
105-
# https://github.com/python/mypy/issues/1422
106-
# Stalled PRs: https://github.com/python/mypy/pull/3527
107-
# https://github.com/python/mypy/pull/5212
108-
package_path = package.__path__ # type: ignore
105+
package_path = package.__path__
109106

110107
for _, module_name, _ in pkgutil.walk_packages(package_path, prefix=f'{package.__name__}.'):
111108
module = __import__(module_name, fromlist=["__trash"], level=0)

domdf_python_tools/iterative.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,11 +489,11 @@ def __iter__(self):
489489

490490
if isinstance(step, int) and step == 1:
491491

492-
def __repr__(self):
492+
def __repr__(self) -> str:
493493
return f"{self.__class__.__name__}({get_next()})"
494494
else:
495495

496-
def __repr__(self):
496+
def __repr__(self) -> str:
497497
return f"{self.__class__.__name__}{get_next(), step}"
498498

499499
def __init_subclass__(cls, **kwargs):

repo_helper.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ requires_python: 3.6
1313
min_coverage: 95
1414
tox_testenv_extras: all
1515
docs_fail_on_warning: true
16+
mypy_version: "0.930"
1617

1718
conda_channels:
1819
- conda-forge

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ ignore_errors = True
9393
changedir = {toxinidir}
9494
extras = all
9595
deps =
96-
mypy==0.910
96+
mypy==0.930
9797
-r{toxinidir}/tests/requirements.txt
9898
-r{toxinidir}/stubs.txt
9999
pprint36

0 commit comments

Comments
 (0)