File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -263,10 +263,10 @@ class D(A):
263263[case testColumnMissingTypeParameters]
264264# flags: --disallow-any-generics
265265from typing import List, Callable
266- def f(x: List) -> None: pass # E:10: Missing type parameters for generic type "List"
267- def g(x: list) -> None: pass # E:10: Missing type parameters for generic type "list"
266+ def f(x: List) -> None: pass # E:10: Missing type arguments for generic type "List"
267+ def g(x: list) -> None: pass # E:10: Missing type arguments for generic type "list"
268268if int():
269- c: Callable # E:8: Missing type parameters for generic type "Callable"
269+ c: Callable # E:8: Missing type arguments for generic type "Callable"
270270[builtins fixtures/list.pyi]
271271
272272[case testColumnIncompatibleDefault]
Original file line number Diff line number Diff line change @@ -1634,7 +1634,7 @@ class A(Generic[T]):
16341634def f(c: A) -> None: # E: Missing type arguments for generic type "A"
16351635 pass
16361636[file mypy.ini]
1637- [mypy]
1637+ \ [mypy]
16381638strict = True
16391639
16401640
@@ -1651,7 +1651,7 @@ def f(c: A) -> None: # E: Missing type arguments for generic type "A"
16511651 pass
16521652
16531653[file pyproject.toml]
1654- [tool.mypy]
1654+ \ [tool.mypy]
16551655strict = true
16561656
16571657
Original file line number Diff line number Diff line change @@ -537,7 +537,7 @@ strict_optional = True
537537\[mypy-a.b.c.d.e]
538538ignore_errors = False
539539[out]
540- a/b/c/d/e/__init__.py:2: error: Missing type parameters for generic type "List"
540+ a/b/c/d/e/__init__.py:2: error: Missing type arguments for generic type "List"
541541a/b/c/d/e/__init__.py:3: error: Argument 1 to "g" has incompatible type "None"; expected "list[Any]"
542542
543543[case testMissingFile]
You can’t perform that action at this time.
0 commit comments