Skip to content

Commit 6548642

Browse files
committed
Bump mypy version
1 parent 9e66c43 commit 6548642

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

domdf_python_tools/words.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,11 +602,11 @@ def __call__(self, n: int) -> str: # type: ignore
602602
if PYPY: # pragma: no cover (!PyPy)
603603

604604
def __init__(self, singular: str, plural: str):
605-
super().__init__(ngettext, singular, plural)
605+
super().__init__(ngettext, singular, plural) # type: ignore[call-arg]
606606
else: # pragma: no cover (!CPython)
607607

608608
def __new__(cls, singular: str, plural: str): # noqa: D102
609-
return functools.partial.__new__(cls, ngettext, singular, plural) # type: ignore
609+
return functools.partial.__new__(cls, ngettext, singular, plural)
610610

611611
@recursive_repr()
612612
def __repr__(self):

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.942
1617

1718
conda_channels:
1819
- conda-forge

tests/test_pretty_print.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ def test_user_dict(self, advanced_file_regression: AdvancedFileRegressionFixture
920920
d: collections.UserDict = collections.UserDict()
921921
assert FancyPrinter(width=1).pformat(d) == "{}"
922922
words = "the quick brown fox jumped over a lazy dog".split()
923-
d = collections.UserDict(zip(words, itertools.count())) # type: ignore
923+
d = collections.UserDict(zip(words, itertools.count()))
924924
advanced_file_regression.check(FancyPrinter().pformat(d))
925925

926926
def test_user_list(self, advanced_file_regression: AdvancedFileRegressionFixture):

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ ignore_errors = True
104104
changedir = {toxinidir}
105105
extras = all
106106
deps =
107-
mypy==0.931
107+
mypy==0.942
108108
-r{toxinidir}/tests/requirements.txt
109109
-r{toxinidir}/stubs.txt
110110
pprint36

0 commit comments

Comments
 (0)