@@ -60,16 +60,16 @@ class Real(Complex, SupportsFloat, SupportsRound):
60
60
def conjugate (self ) -> Real : ...
61
61
62
62
@abstractmethod
63
- def __add__ (self , other : Real ) -> Real : ...
64
- def __neg__ (self ) -> Real : ...
63
+ def __add__ (self , other : Real ) -> Real : ... # type: ignore
64
+ def __neg__ (self ) -> Real : ... # type: ignore
65
65
@abstractmethod
66
- def __mul__ (self , other : Real ) -> Real : ...
66
+ def __mul__ (self , other : Real ) -> Real : ... # type: ignore
67
67
if sys .version_info >= (3 ,):
68
68
@abstractmethod
69
- def __truediv__ (self , other : Real ) -> Real : ...
69
+ def __truediv__ (self , other : Real ) -> Real : ... # type: ignore
70
70
else :
71
71
@abstractmethod
72
- def __div__ (self , other : Real ) -> Real : ...
72
+ def __div__ (self , other : Real ) -> Real : ... # type: ignore
73
73
74
74
class Rational (Real ):
75
75
@property
@@ -81,88 +81,88 @@ class Rational(Real):
81
81
def __float__ (self ) -> float : ...
82
82
83
83
@abstractmethod
84
- def __divmod__ (self , other : Rational ) -> Rational : ...
84
+ def __divmod__ (self , other : Rational ) -> Rational : ... # type: ignore
85
85
@abstractmethod
86
- def __floordiv__ (self , other : Rational ) -> Rational : ...
86
+ def __floordiv__ (self , other : Rational ) -> Rational : ... # type: ignore
87
87
@abstractmethod
88
- def __mod__ (self , other : Rational ) -> Rational : ...
88
+ def __mod__ (self , other : Rational ) -> Rational : ... # type: ignore
89
89
@abstractmethod
90
- def __lt__ (self , other : Rational , float ) -> bool : ...
90
+ def __lt__ (self , other : Rational , float ) -> bool : ... # type: ignore
91
91
@abstractmethod
92
- def __le__ (self , other : Rational ) -> bool : ...
92
+ def __le__ (self , other : Rational ) -> bool : ... # type: ignore
93
93
@abstractmethod
94
- def __gt__ (self , other : Rational ) -> bool : ...
94
+ def __gt__ (self , other : Rational ) -> bool : ... # type: ignore
95
95
@abstractmethod
96
- def __ge__ (self , other : Rational ) -> bool : ...
96
+ def __ge__ (self , other : Rational ) -> bool : ... # type: ignore
97
97
def __complex__ (self ) -> Complex : ... # type: ignore
98
98
@property
99
- def real (self ) -> Rational : ...
99
+ def real (self ) -> Rational : ... # type: ignore
100
100
@property
101
- def imag (self ) -> Rational : ...
102
- def conjugate (self ) -> Rational : ...
101
+ def imag (self ) -> Rational : ... # type: ignore
102
+ def conjugate (self ) -> Rational : ... # type: ignore
103
103
104
104
@abstractmethod
105
- def __add__ (self , other : Rational ) -> Rational : ...
105
+ def __add__ (self , other : Rational ) -> Rational : ... # type: ignore
106
106
def __neg__ (self ) -> Rational : ...
107
107
@abstractmethod
108
- def __mul__ (self , other : Rational ) -> Rational : ...
108
+ def __mul__ (self , other : Rational ) -> Rational : ... # type: ignore
109
109
if sys .version_info >= (3 ,):
110
110
@abstractmethod
111
- def __truediv__ (self , other : Rational ) -> Rational : ...
111
+ def __truediv__ (self , other : Rational ) -> Rational : ... # type: ignore
112
112
else :
113
113
@abstractmethod
114
- def __div__ (self , other : Rational ) -> Rational : ...
114
+ def __div__ (self , other : Rational ) -> Rational : ... # type: ignore
115
115
116
116
class Integral (Rational , SupportsInt , SupportsAbs [int ]):
117
117
@property
118
- def numerator (self ) -> int : ...
118
+ def numerator (self ) -> int : ... # type: ignore
119
119
@property
120
- def denominator (self ) -> int : ...
120
+ def denominator (self ) -> int : ... # type: ignore
121
121
@abstractmethod
122
- def __pow__ (self , exponent : float ,
122
+ def __pow__ (self , exponent : float , # type: ignore
123
123
modulus : Optional [int ] = ...) -> Integral : ...
124
124
@abstractmethod
125
- def __lshift__ (self , other : Integral ) -> Integral : ...
125
+ def __lshift__ (self , other : Integral ) -> Integral : ... # type: ignore
126
126
@abstractmethod
127
- def __rshift__ (self , other : Integral ) -> Integral : ...
127
+ def __rshift__ (self , other : Integral ) -> Integral : ... # type: ignore
128
128
@abstractmethod
129
- def __and__ (self , other : Integral ) -> Integral : ...
129
+ def __and__ (self , other : Integral ) -> Integral : ... # type: ignore
130
130
@abstractmethod
131
- def __xor__ (self , other : Integral ) -> Integral : ...
131
+ def __xor__ (self , other : Integral ) -> Integral : ... # type: ignore
132
132
@abstractmethod
133
- def __or__ (self , other : Integral ) -> Integral : ...
133
+ def __or__ (self , other : Integral ) -> Integral : ... # type: ignore
134
134
@abstractmethod
135
- def __invert__ (self ) -> Integral : ...
135
+ def __invert__ (self ) -> Integral : ... # type: ignore
136
136
137
137
@abstractmethod
138
- def __divmod__ (self , other : Integral ) -> Integral : ...
138
+ def __divmod__ (self , other : Integral ) -> Integral : ... # type: ignore
139
139
@abstractmethod
140
- def __floordiv__ (self , other : Integral ) -> Integral : ...
140
+ def __floordiv__ (self , other : Integral ) -> Integral : ... # type: ignore
141
141
@abstractmethod
142
- def __mod__ (self , other : Integral ) -> Integral : ...
142
+ def __mod__ (self , other : Integral ) -> Integral : ... # type: ignore
143
143
@abstractmethod
144
- def __lt__ (self , other : Integral ) -> bool : ...
144
+ def __lt__ (self , other : Integral ) -> bool : ... # type: ignore
145
145
@abstractmethod
146
- def __le__ (self , other : Integral ) -> bool : ...
146
+ def __le__ (self , other : Integral ) -> bool : ... # type: ignore
147
147
@abstractmethod
148
- def __gt__ (self , other : Integral ) -> bool : ...
148
+ def __gt__ (self , other : Integral ) -> bool : ... # type: ignore
149
149
@abstractmethod
150
- def __ge__ (self , other : Integral ) -> bool : ...
150
+ def __ge__ (self , other : Integral ) -> bool : ... # type: ignore
151
151
def __complex__ (self ) -> Complex : ... # type: ignore
152
152
@property
153
- def real (self ) -> Integral : ...
153
+ def real (self ) -> Integral : ... # type: ignore
154
154
@property
155
- def imag (self ) -> Integral : ...
156
- def conjugate (self ) -> Integral : ...
155
+ def imag (self ) -> Integral : ... # type: ignore
156
+ def conjugate (self ) -> Integral : ... # type: ignore
157
157
158
158
@abstractmethod
159
- def __add__ (self , other : Integral ) -> Integral : ...
160
- def __neg__ (self ) -> Integral : ...
159
+ def __add__ (self , other : Integral ) -> Integral : ... # type: ignore
160
+ def __neg__ (self ) -> Integral : ... # type: ignore
161
161
@abstractmethod
162
- def __mul__ (self , other : Integral ) -> Integral : ...
162
+ def __mul__ (self , other : Integral ) -> Integral : ... # type: ignore
163
163
if sys .version_info >= (3 ,):
164
164
@abstractmethod
165
- def __truediv__ (self , other : Integral ) -> Integral : ...
165
+ def __truediv__ (self , other : Integral ) -> Integral : ... # type: ignore
166
166
else :
167
167
@abstractmethod
168
- def __div__ (self , other : Integral ) -> Integral : ...
168
+ def __div__ (self , other : Integral ) -> Integral : ... # type: ignore
0 commit comments