Skip to content

Commit c3e02f7

Browse files
committed
Update mypyc fixture
1 parent deb167e commit c3e02f7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

mypyc/test-data/fixtures/typing-full.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ class GenericMeta(type): pass
1212

1313
class _SpecialForm:
1414
def __getitem__(self, index): ...
15+
class TypeVar:
16+
def __init__(self, name, *args, bound=None): ...
17+
def __or__(self, other): ...
1518

1619
cast = 0
1720
overload = 0
1821
Any = object()
1922
Optional = 0
20-
TypeVar = 0
2123
Generic = 0
2224
Protocol = 0
2325
Tuple = 0

mypyc/test-data/run-functions.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,6 +1286,7 @@ def bar() -> None:
12861286
print(inner.__dict__) # type: ignore
12871287

12881288
bar()
1289+
[typing fixtures/typing-full.pyi]
12891290
[out]
12901291
{'__module__': 'native', '__name__': 'bar', '__qualname__': 'bar', '__doc__': None, '__wrapped__': <built-in function bar>}
12911292

0 commit comments

Comments
 (0)