Skip to content

Commit 9dddf0f

Browse files
committed
Bump mypy
1 parent c8a9c4d commit 9dddf0f

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

sdjson/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class SingleDispatch(Protocol):
8686
registry: Mapping[Any, Callable[..., _T]]
8787

8888
def _clear_cache(self) -> None: ...
89-
def __call__(self, *args: Any, **kwargs: Any) -> _T: ...
89+
def __call__(self, *args: Any, **kwargs: Any) -> _T: ... # type: ignore[type-var] # TODO
9090

9191
class SupportsRead(Protocol[_T_co]):
9292
def read(self, __length: int = ...) -> _T_co: ...

tests/stdlib_tests/test_enum.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ def test_dict_keys() -> None:
8787
j: float
8888
n: float
8989

90-
s, b, h, r = BigNum # type: ignore[misc]
91-
e, p, t = FloatNum # type: ignore[misc]
92-
i, j, n = WierdNum # type: ignore[misc]
90+
s, b, h, r = BigNum
91+
e, p, t = FloatNum
92+
i, j, n = WierdNum
9393

9494
d = {
9595
s: "tiny",

tests/test_custom_class.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __repr__(self) -> str:
4545
return f"Character: {self.name} ({self.actor})"
4646

4747
@property
48-
def __dict__(self):
48+
def __dict__(self): # type: ignore[override]
4949
return dict(name=self.name, actor=self.actor, armed=self.armed)
5050

5151

@@ -63,7 +63,7 @@ def __repr__(self) -> str:
6363
return f"Cheese({self.name})"
6464

6565
@property
66-
def __dict__(self):
66+
def __dict__(self): # type: ignore[override]
6767
return dict(
6868
name=self.name,
6969
properties=self.properties,
@@ -112,7 +112,7 @@ def __repr__(self) -> str:
112112
return f"{self.name} ({'Open' if self.is_open else 'closed'})"
113113

114114
@property
115-
def __dict__(self):
115+
def __dict__(self): # type: ignore[override]
116116
return dict(
117117
name=self.name,
118118
address=self.address,

tests/test_custom_encoders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# 3rd party
1212
import pytest
13-
import pytz # type: ignore[import]
13+
import pytz # type: ignore[import-untyped]
1414

1515
# this package
1616
import sdjson

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ basepython = python3.8
144144
ignore_errors = True
145145
changedir = {toxinidir}
146146
deps =
147-
mypy==0.971
147+
mypy==1.17.1
148148
-r{toxinidir}/tests/requirements.txt
149149
-r{toxinidir}/stubs.txt
150150
commands = mypy sdjson tests {posargs}

0 commit comments

Comments
 (0)