|
64 | 64 |
|
65 | 65 | # Mypy does not support recursive type aliases, but |
66 | 66 | # other type checkers do. |
67 | | -RecList = Union[int, List["RecList"]] # type: ignore |
68 | | -MutualRecA = Union[bool, List["MutualRecB"]] # type: ignore |
69 | | -MutualRecB = Union[str, List["MutualRecA"]] # type: ignore |
| 67 | +RecList = Union[int, List["RecList"]] |
| 68 | +MutualRecA = Union[bool, List["MutualRecB"]] |
| 69 | +MutualRecB = Union[str, List["MutualRecA"]] |
70 | 70 |
|
71 | 71 |
|
72 | 72 | class A: |
@@ -103,10 +103,10 @@ class Metaclass(type): |
103 | 103 |
|
104 | 104 | class HintedMethods: |
105 | 105 | @classmethod |
106 | | - def from_magic(cls: type[T]) -> T: |
| 106 | + def from_magic(cls: type[T]) -> T: # type: ignore |
107 | 107 | ... |
108 | 108 |
|
109 | | - def method(self: T) -> T: |
| 109 | + def method(self: T) -> T: # type: ignore |
110 | 110 | ... |
111 | 111 |
|
112 | 112 |
|
@@ -151,7 +151,7 @@ def __getitem__(self, params): |
151 | 151 | pytest.param(Callable[..., str], "typing", "Callable", (..., str), id="Callable_returntype"), |
152 | 152 | pytest.param(Callable[[int, str], str], "typing", "Callable", (int, str, str), id="Callable_all_types"), |
153 | 153 | pytest.param( |
154 | | - AbcCallable[[int, str], str], # type: ignore[misc] |
| 154 | + AbcCallable[[int, str], str], # type: ignore |
155 | 155 | "collections.abc", |
156 | 156 | "Callable", |
157 | 157 | (int, str, str), |
@@ -258,7 +258,7 @@ def test_parse_annotation(annotation: Any, module: str, class_name: str, args: t |
258 | 258 | " :py:class:`~typing.TypeVar`\\(``T``)]", |
259 | 259 | ), |
260 | 260 | ( |
261 | | - AbcCallable[[int, str], bool], # type: ignore[misc] |
| 261 | + AbcCallable[[int, str], bool], # type: ignore |
262 | 262 | ":py:class:`~collections.abc.Callable`\\[\\[:py:class:`int`, " ":py:class:`str`], :py:class:`bool`]", |
263 | 263 | ), |
264 | 264 | (Pattern, ":py:class:`~typing.Pattern`"), |
|
0 commit comments