Skip to content

Commit ed6dcdc

Browse files
author
hauntsaninja
committed
some other test fixes
1 parent 394baaf commit ed6dcdc

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

Diff for: test-data/unit/check-incomplete-fixture.test

-8
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ import m
1212
m.x # E: "object" has no attribute "x"
1313
[file m.py]
1414

15-
[case testListMissingFromStubs]
16-
from typing import List
17-
def f(x: List[int]) -> None: pass
18-
[out]
19-
main:1: error: Module 'typing' has no attribute 'List'
20-
main:1: note: Maybe your test fixture does not define "builtins.list"?
21-
main:1: note: Consider adding [builtins fixtures/list.pyi] to your test description
22-
2315
[case testDictMissingFromStubs]
2416
from typing import Dict
2517
def f(x: Dict[int]) -> None: pass

Diff for: test-data/unit/fine-grained-modules.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,7 @@ x = 1
14371437
[file b/foo.py]
14381438
[file b/__init__.py.2]
14391439
# Dummy change
1440-
[builtins fixtures/bool.pyi]
1440+
[builtins fixtures/primitives.pyi]
14411441
[out]
14421442
==
14431443

Diff for: test-data/unit/fixtures/args.pyi

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Builtins stub used to support *args, **kwargs.
22

3-
from typing import TypeVar, Generic, Iterable, Tuple, Dict, Any, overload, Mapping
3+
from typing import TypeVar, Generic, Iterable, Sequence, Tuple, Dict, Any, overload, Mapping
44

55
Tco = TypeVar('Tco', covariant=True)
66
T = TypeVar('T')
@@ -22,6 +22,8 @@ class tuple(Iterable[Tco], Generic[Tco]): pass
2222

2323
class dict(Iterable[T], Mapping[T, S], Generic[T, S]): pass
2424

25+
class list(Generic[T], Sequence[T]): pass
26+
2527
class int:
2628
def __eq__(self, o: object) -> bool: pass
2729
class str: pass

0 commit comments

Comments
 (0)