Debian Codegraph @

test-data/unit/fixtures/fine_grained.pyi

raw
1 # Small stub for fine-grained incremental checking test cases
2 #
3 # TODO: Migrate to regular stubs once fine-grained incremental is robust
4 # enough to handle them.
5
6 import types
7 from typing import TypeVar, Generic
8
9 T = TypeVar('T')
10
11 class Any: pass
12
13 class object:
14 def __init__(self) -> None: pass
15
16 class type:
17 def __init__(self, x: Any) -> None: pass
18
19 class int:
20 def __add__(self, other: 'int') -> 'int': pass
21 class str:
22 def __add__(self, other: 'str') -> 'str': pass
23
24 class float: pass
25 class bytes: pass
26 class tuple(Generic[T]): pass
27 class function: pass
28 class ellipsis: pass
29 class list(Generic[T]): pass
30 class dict: pass