@@ -72,27 +72,27 @@ class int(numbers.Integral):
7272 def __init__ (self , x : Union [str , unicode , bytearray ], base : int = 10 ) -> None : ...
7373 def bit_length (self ) -> int : ...
7474
75- def __add__ (self , x : int ) -> int : ...
75+ def __add__ (self , x : numbers . Integral ) -> int : ... # type: ignore
7676 def __sub__ (self , x : int ) -> int : ...
77- def __mul__ (self , x : int ) -> int : ...
78- def __floordiv__ (self , x : int ) -> int : ...
79- def __div__ (self , x : int ) -> int : ...
80- def __truediv__ (self , x : int ) -> float : ...
81- def __mod__ (self , x : int ) -> int : ...
77+ def __mul__ (self , x : numbers . Integral ) -> int : ... # type: ignore
78+ def __floordiv__ (self , x : numbers . Integral ) -> int : ... # type: ignore
79+ def __div__ (self , x : numbers . Integral ) -> int : ... # type: ignore
80+ def __truediv__ (self , x : numbers . Integral ) -> float : ... # type: ignore
81+ def __mod__ (self , x : numbers . Integral ) -> int : ... # type: ignore
8282 def __radd__ (self , x : int ) -> int : ...
8383 def __rsub__ (self , x : int ) -> int : ...
8484 def __rmul__ (self , x : int ) -> int : ...
8585 def __rfloordiv__ (self , x : int ) -> int : ...
8686 def __rdiv__ (self , x : int ) -> int : ...
8787 def __rtruediv__ (self , x : int ) -> float : ...
8888 def __rmod__ (self , x : int ) -> int : ...
89- def __pow__ (self , x : int ) -> Any : ... # Return type can be int or float, depending on x.
89+ def __pow__ (self , x : numbers . Integral ) -> Any : ... # Return type can be int or float, depending on x. # type: ignore
9090 def __rpow__ (self , x : int ) -> Any : ...
91- def __and__ (self , n : int ) -> int : ...
92- def __or__ (self , n : int ) -> int : ...
93- def __xor__ (self , n : int ) -> int : ...
94- def __lshift__ (self , n : int ) -> int : ...
95- def __rshift__ (self , n : int ) -> int : ...
91+ def __and__ (self , n : numbers . Integral ) -> int : ... # type: ignore
92+ def __or__ (self , n : numbers . Integral ) -> int : ... # type: ignore
93+ def __xor__ (self , n : numbers . Integral ) -> int : ... # type: ignore
94+ def __lshift__ (self , n : numbers . Integral ) -> int : ... # type: ignore
95+ def __rshift__ (self , n : numbers . Integral ) -> int : ... # type: ignore
9696 def __rand__ (self , n : int ) -> int : ...
9797 def __ror__ (self , n : int ) -> int : ...
9898 def __rxor__ (self , n : int ) -> int : ...
@@ -104,10 +104,10 @@ class int(numbers.Integral):
104104
105105 def __eq__ (self , x : object ) -> bool : ...
106106 def __ne__ (self , x : object ) -> bool : ...
107- def __lt__ (self , x : int ) -> bool : ...
108- def __le__ (self , x : int ) -> bool : ...
109- def __gt__ (self , x : int ) -> bool : ...
110- def __ge__ (self , x : int ) -> bool : ...
107+ def __lt__ (self , x : numbers . Integral ) -> bool : ... # type: ignore
108+ def __le__ (self , x : numbers . Integral ) -> bool : ... # type: ignore
109+ def __gt__ (self , x : numbers . Integral ) -> bool : ... # type: ignore
110+ def __ge__ (self , x : numbers . Integral ) -> bool : ... # type: ignore
111111
112112 def __str__ (self ) -> str : ...
113113 def __float__ (self ) -> float : ...
@@ -130,14 +130,14 @@ class float(numbers.Real):
130130 @classmethod
131131 def fromhex (cls , s : str ) -> float : ...
132132
133- def __add__ (self , x : float ) -> float : ...
133+ def __add__ (self , x : numbers . Real ) -> float : ... # type: ignore
134134 def __sub__ (self , x : float ) -> float : ...
135- def __mul__ (self , x : float ) -> float : ...
136- def __floordiv__ (self , x : float ) -> float : ...
137- def __div__ (self , x : float ) -> float : ...
138- def __truediv__ (self , x : float ) -> float : ...
139- def __mod__ (self , x : float ) -> float : ...
140- def __pow__ (self , x : float ) -> float : ...
135+ def __mul__ (self , x : numbers . Real ) -> float : ... # type: ignore
136+ def __floordiv__ (self , x : numbers . Real ) -> float : ... # type: ignore
137+ def __div__ (self , x : numbers . Real ) -> float : ... # type: ignore
138+ def __truediv__ (self , x : numbers . Real ) -> float : ... # type: ignore
139+ def __mod__ (self , x : numbers . Real ) -> float : ... # type: ignore
140+ def __pow__ (self , x : numbers . Real ) -> float : ... # type: ignore
141141 def __radd__ (self , x : float ) -> float : ...
142142 def __rsub__ (self , x : float ) -> float : ...
143143 def __rmul__ (self , x : float ) -> float : ...
@@ -149,10 +149,10 @@ class float(numbers.Real):
149149
150150 def __eq__ (self , x : object ) -> bool : ...
151151 def __ne__ (self , x : object ) -> bool : ...
152- def __lt__ (self , x : float ) -> bool : ...
153- def __le__ (self , x : float ) -> bool : ...
154- def __gt__ (self , x : float ) -> bool : ...
155- def __ge__ (self , x : float ) -> bool : ...
152+ def __lt__ (self , x : numbers . Real ) -> bool : ... # type: ignore
153+ def __le__ (self , x : numbers . Real ) -> bool : ... # type: ignore
154+ def __gt__ (self , x : numbers . Real ) -> bool : ... # type: ignore
155+ def __ge__ (self , x : numbers . Real ) -> bool : ... # type: ignore
156156 def __neg__ (self ) -> float : ...
157157 def __pos__ (self ) -> float : ...
158158
@@ -162,7 +162,7 @@ class float(numbers.Real):
162162 def __abs__ (self ) -> float : ...
163163 def __hash__ (self ) -> int : ...
164164
165- class complex (numbers .complex ):
165+ class complex (numbers .Complex ):
166166 @overload
167167 def __init__ (self , re : float = 0.0 , im : float = 0.0 ) -> None : ...
168168 @overload
@@ -175,12 +175,12 @@ class complex(numbers.complex):
175175
176176 def conjugate (self ) -> complex : ...
177177
178- def __add__ (self , x : complex ) -> complex : ...
178+ def __add__ (self , x : numbers . Complex ) -> complex : ... # type: ignore
179179 def __sub__ (self , x : complex ) -> complex : ...
180- def __mul__ (self , x : complex ) -> complex : ...
181- def __pow__ (self , x : complex ) -> complex : ...
182- def __div__ (self , x : complex ) -> complex : ...
183- def __truediv__ (self , x : complex ) -> complex : ...
180+ def __mul__ (self , x : numbers . Complex ) -> complex : ... # type: ignore
181+ def __pow__ (self , x : numbers . Complex ) -> complex : ... # type: ignore
182+ def __div__ (self , x : numbers . Complex ) -> complex : ... # type: ignore
183+ def __truediv__ (self , x : numbers . Complex ) -> complex : ... # type: ignore
184184 def __radd__ (self , x : complex ) -> complex : ...
185185 def __rsub__ (self , x : complex ) -> complex : ...
186186 def __rmul__ (self , x : complex ) -> complex : ...
0 commit comments