Skip to content

Commit 3e1d830

Browse files
committed
more edits
1 parent b3fd9ff commit 3e1d830

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

test-data/unit/check-columns.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@ class D(A):
263263
[case testColumnMissingTypeParameters]
264264
# flags: --disallow-any-generics
265265
from 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"
268268
if 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]

test-data/unit/check-flags.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,7 @@ class A(Generic[T]):
16341634
def f(c: A) -> None: # E: Missing type arguments for generic type "A"
16351635
pass
16361636
[file mypy.ini]
1637-
[mypy]
1637+
\[mypy]
16381638
strict = 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]
16551655
strict = true
16561656

16571657

test-data/unit/cmdline.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ strict_optional = True
537537
\[mypy-a.b.c.d.e]
538538
ignore_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"
541541
a/b/c/d/e/__init__.py:3: error: Argument 1 to "g" has incompatible type "None"; expected "list[Any]"
542542

543543
[case testMissingFile]

0 commit comments

Comments
 (0)