Debian Codegraph @

test-data/unit/lib-stub/builtins.pyi

raw
1 # DO NOT ADD TO THIS FILE AS IT WILL SLOW DOWN TESTS!
2 #
3 # Use [builtins fixtures/...pyi] if you need more features.
4
5 import _typeshed
6
7 class object:
8 def __init__(self) -> None: pass
9
10 class type:
11 def __init__(self, x: object) -> None: pass
12
13 # These are provided here for convenience.
14 class int:
15 def __add__(self, other: int) -> int: pass
16 class bool(int): pass
17 class float: pass
18
19 class str: pass
20 class bytes: pass
21
22 class function:
23 __name__: str
24 class ellipsis: pass
25
26 from typing import Generic, Iterator, Sequence, TypeVar
27 _T = TypeVar('_T')
28 class list(Generic[_T], Sequence[_T]):
29 def __contains__(self, item: object) -> bool: pass
30 def __getitem__(self, key: int) -> _T: pass
31 def __iter__(self) -> Iterator[_T]: pass
32
33 class dict: pass
34
35 # Definition of None is implicit