MCPcopy Index your code
hub / github.com/python/mypy / int

Class int

mypyc/test-data/fixtures/ir.py:64–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62# Primitive types are special in generated code.
63
64class int:
65 @overload
66 def __init__(self) -> None: pass
67 @overload
68 def __init__(self, x: object, base: int = 10) -> None: pass
69 def __add__(self, n: int) -> int: pass
70 def __sub__(self, n: int) -> int: pass
71 def __mul__(self, n: int) -> int: pass
72 def __pow__(self, n: int, modulo: Optional[int] = None) -> int: pass
73 def __floordiv__(self, x: int) -> int: pass
74 def __truediv__(self, x: float) -> float: pass
75 def __mod__(self, x: int) -> int: pass
76 def __divmod__(self, x: float) -> Tuple[float, float]: pass
77 def __neg__(self) -> int: pass
78 def __pos__(self) -> int: pass
79 def __abs__(self) -> int: pass
80 def __invert__(self) -> int: pass
81 def __and__(self, n: int) -> int: pass
82 def __or__(self, n: int) -> int: pass
83 def __xor__(self, n: int) -> int: pass
84 def __lshift__(self, x: int) -> int: pass
85 def __rshift__(self, x: int) -> int: pass
86 def __eq__(self, n: object) -> bool: pass
87 def __ne__(self, n: object) -> bool: pass
88 def __lt__(self, n: int) -> bool: pass
89 def __gt__(self, n: int) -> bool: pass
90 def __le__(self, n: int) -> bool: pass
91 def __ge__(self, n: int) -> bool: pass
92 def to_bytes(self, length: int, order: str, *, signed: bool = False) -> bytes: pass
93 def bit_length(self) -> int: pass
94
95class str:
96 @overload

Callers 15

setup.pyFile · 0.85
parse_versionFunction · 0.85
parse_versionFunction · 0.85
getmtimeMethod · 0.85
parse_fileMethod · 0.85
max_batch_sizeMethod · 0.85
validate_metaFunction · 0.85
write_cacheFunction · 0.85
__init__Method · 0.85
deserializeMethod · 0.85
serializeMethod · 0.85
writeMethod · 0.85

Calls

no outgoing calls

Tested by 11

get_build_stepsMethod · 0.68
maybe_suggestMethod · 0.68
maybe_inspectMethod · 0.68
test_python_evaluationFunction · 0.68
run_caseMethod · 0.68
parse_flagsMethod · 0.68
test_repoFunction · 0.68
replace_word_sizeFunction · 0.68
run_case_stepMethod · 0.68
fix_native_line_numberFunction · 0.68