Debian Codegraph @

test-data/unit/fixtures/callable.pyi

raw
1 from typing import Generic, Tuple, TypeVar, Union
2
3 T = TypeVar('T')
4
5 class object:
6 def __init__(self) -> None: pass
7
8 class type:
9 def __init__(self, x) -> None: pass
10
11 class tuple(Generic[T]): pass
12
13 class classmethod: pass
14 class staticmethod: pass
15 class function: pass
16
17 def isinstance(x: object, t: Union[type, Tuple[type, ...]]) -> bool: pass
18
19 def callable(x: object) -> bool: pass
20
21 class int:
22 def __add__(self, other: 'int') -> 'int': pass
23 def __eq__(self, other: 'int') -> 'bool': pass
24 class float: pass
25 class bool(int): pass
26 class str:
27 def __add__(self, other: 'str') -> 'str': pass
28 def __eq__(self, other: 'str') -> bool: pass
29 class ellipsis: pass
30 class list: ...
31 class dict: pass