Debian Codegraph @

test-data/unit/fixtures/plugin_attrs.pyi

raw
1 # Builtins stub used to support attrs plugin tests.
2 from typing import Union, overload, Generic, Sequence, TypeVar, Type, Iterable, Iterator
3
4 class object:
5 def __init__(self) -> None: pass
6 def __eq__(self, o: object) -> bool: pass
7 def __ne__(self, o: object) -> bool: pass
8 def __hash__(self) -> int: ...
9
10 class type: pass
11 class bytes: pass
12 class function: pass
13 class float: pass
14 class int:
15 @overload
16 def __init__(self, x: Union[str, bytes, int] = ...) -> None: ...
17 @overload
18 def __init__(self, x: Union[str, bytes], base: int) -> None: ...
19 class bool(int): pass
20 class complex:
21 @overload
22 def __init__(self, real: float = ..., im: float = ...) -> None: ...
23 @overload
24 def __init__(self, real: str = ...) -> None: ...
25
26 class str: pass
27 class ellipsis: pass
28 class list: pass
29 class dict: pass
30
31 T = TypeVar("T")
32 Tco = TypeVar('Tco', covariant=True)
33 class tuple(Sequence[Tco], Generic[Tco]):
34 def __new__(cls: Type[T], iterable: Iterable[Tco] = ...) -> T: ...
35 def __iter__(self) -> Iterator[Tco]: pass
36 def __contains__(self, item: object) -> bool: pass
37 def __getitem__(self, x: int) -> Tco: pass
38
39 property = object() # Dummy definition