@@ -53,7 +53,7 @@ def getcontext() -> Context: ...
53
53
54
54
if sys .version_info >= (3 , 11 ):
55
55
def localcontext (
56
- ctx : Context | None = ... ,
56
+ ctx : Context | None = None ,
57
57
* ,
58
58
prec : int | None = ...,
59
59
rounding : str | None = ...,
@@ -73,10 +73,10 @@ class Decimal:
73
73
@classmethod
74
74
def from_float (cls : type [Self ], __f : float ) -> Self : ...
75
75
def __bool__ (self ) -> bool : ...
76
- def compare (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
76
+ def compare (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
77
77
def as_tuple (self ) -> DecimalTuple : ...
78
78
def as_integer_ratio (self ) -> tuple [int , int ]: ...
79
- def to_eng_string (self , context : Context | None = ... ) -> str : ...
79
+ def to_eng_string (self , context : Context | None = None ) -> str : ...
80
80
def __abs__ (self ) -> Decimal : ...
81
81
def __add__ (self , __other : _Decimal ) -> Decimal : ...
82
82
def __divmod__ (self , __other : _Decimal ) -> tuple [Decimal , Decimal ]: ...
@@ -100,7 +100,7 @@ class Decimal:
100
100
def __rtruediv__ (self , __other : _Decimal ) -> Decimal : ...
101
101
def __sub__ (self , __other : _Decimal ) -> Decimal : ...
102
102
def __truediv__ (self , __other : _Decimal ) -> Decimal : ...
103
- def remainder_near (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
103
+ def remainder_near (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
104
104
def __float__ (self ) -> float : ...
105
105
def __int__ (self ) -> int : ...
106
106
def __trunc__ (self ) -> int : ...
@@ -116,53 +116,53 @@ class Decimal:
116
116
def __round__ (self , __ndigits : int ) -> Decimal : ...
117
117
def __floor__ (self ) -> int : ...
118
118
def __ceil__ (self ) -> int : ...
119
- def fma (self , other : _Decimal , third : _Decimal , context : Context | None = ... ) -> Decimal : ...
119
+ def fma (self , other : _Decimal , third : _Decimal , context : Context | None = None ) -> Decimal : ...
120
120
def __rpow__ (self , __other : _Decimal , __context : Context | None = ...) -> Decimal : ...
121
- def normalize (self , context : Context | None = ... ) -> Decimal : ...
122
- def quantize (self , exp : _Decimal , rounding : str | None = ... , context : Context | None = ... ) -> Decimal : ...
123
- def same_quantum (self , other : _Decimal , context : Context | None = ... ) -> bool : ...
124
- def to_integral_exact (self , rounding : str | None = ... , context : Context | None = ... ) -> Decimal : ...
125
- def to_integral_value (self , rounding : str | None = ... , context : Context | None = ... ) -> Decimal : ...
126
- def to_integral (self , rounding : str | None = ... , context : Context | None = ... ) -> Decimal : ...
127
- def sqrt (self , context : Context | None = ... ) -> Decimal : ...
128
- def max (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
129
- def min (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
121
+ def normalize (self , context : Context | None = None ) -> Decimal : ...
122
+ def quantize (self , exp : _Decimal , rounding : str | None = None , context : Context | None = None ) -> Decimal : ...
123
+ def same_quantum (self , other : _Decimal , context : Context | None = None ) -> bool : ...
124
+ def to_integral_exact (self , rounding : str | None = None , context : Context | None = None ) -> Decimal : ...
125
+ def to_integral_value (self , rounding : str | None = None , context : Context | None = None ) -> Decimal : ...
126
+ def to_integral (self , rounding : str | None = None , context : Context | None = None ) -> Decimal : ...
127
+ def sqrt (self , context : Context | None = None ) -> Decimal : ...
128
+ def max (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
129
+ def min (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
130
130
def adjusted (self ) -> int : ...
131
131
def canonical (self ) -> Decimal : ...
132
- def compare_signal (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
133
- def compare_total (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
134
- def compare_total_mag (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
132
+ def compare_signal (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
133
+ def compare_total (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
134
+ def compare_total_mag (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
135
135
def copy_abs (self ) -> Decimal : ...
136
136
def copy_negate (self ) -> Decimal : ...
137
- def copy_sign (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
138
- def exp (self , context : Context | None = ... ) -> Decimal : ...
137
+ def copy_sign (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
138
+ def exp (self , context : Context | None = None ) -> Decimal : ...
139
139
def is_canonical (self ) -> bool : ...
140
140
def is_finite (self ) -> bool : ...
141
141
def is_infinite (self ) -> bool : ...
142
142
def is_nan (self ) -> bool : ...
143
- def is_normal (self , context : Context | None = ... ) -> bool : ...
143
+ def is_normal (self , context : Context | None = None ) -> bool : ...
144
144
def is_qnan (self ) -> bool : ...
145
145
def is_signed (self ) -> bool : ...
146
146
def is_snan (self ) -> bool : ...
147
- def is_subnormal (self , context : Context | None = ... ) -> bool : ...
147
+ def is_subnormal (self , context : Context | None = None ) -> bool : ...
148
148
def is_zero (self ) -> bool : ...
149
- def ln (self , context : Context | None = ... ) -> Decimal : ...
150
- def log10 (self , context : Context | None = ... ) -> Decimal : ...
151
- def logb (self , context : Context | None = ... ) -> Decimal : ...
152
- def logical_and (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
153
- def logical_invert (self , context : Context | None = ... ) -> Decimal : ...
154
- def logical_or (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
155
- def logical_xor (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
156
- def max_mag (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
157
- def min_mag (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
158
- def next_minus (self , context : Context | None = ... ) -> Decimal : ...
159
- def next_plus (self , context : Context | None = ... ) -> Decimal : ...
160
- def next_toward (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
161
- def number_class (self , context : Context | None = ... ) -> str : ...
149
+ def ln (self , context : Context | None = None ) -> Decimal : ...
150
+ def log10 (self , context : Context | None = None ) -> Decimal : ...
151
+ def logb (self , context : Context | None = None ) -> Decimal : ...
152
+ def logical_and (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
153
+ def logical_invert (self , context : Context | None = None ) -> Decimal : ...
154
+ def logical_or (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
155
+ def logical_xor (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
156
+ def max_mag (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
157
+ def min_mag (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
158
+ def next_minus (self , context : Context | None = None ) -> Decimal : ...
159
+ def next_plus (self , context : Context | None = None ) -> Decimal : ...
160
+ def next_toward (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
161
+ def number_class (self , context : Context | None = None ) -> str : ...
162
162
def radix (self ) -> Decimal : ...
163
- def rotate (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
164
- def scaleb (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
165
- def shift (self , other : _Decimal , context : Context | None = ... ) -> Decimal : ...
163
+ def rotate (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
164
+ def scaleb (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
165
+ def shift (self , other : _Decimal , context : Context | None = None ) -> Decimal : ...
166
166
def __reduce__ (self : Self ) -> tuple [type [Self ], tuple [str ]]: ...
167
167
def __copy__ (self : Self ) -> Self : ...
168
168
def __deepcopy__ (self : Self , __memo : Any ) -> Self : ...
@@ -259,7 +259,7 @@ class Context:
259
259
def normalize (self , __x : _Decimal ) -> Decimal : ...
260
260
def number_class (self , __x : _Decimal ) -> str : ...
261
261
def plus (self , __x : _Decimal ) -> Decimal : ...
262
- def power (self , a : _Decimal , b : _Decimal , modulo : _Decimal | None = ... ) -> Decimal : ...
262
+ def power (self , a : _Decimal , b : _Decimal , modulo : _Decimal | None = None ) -> Decimal : ...
263
263
def quantize (self , __x : _Decimal , __y : _Decimal ) -> Decimal : ...
264
264
def radix (self ) -> Decimal : ...
265
265
def remainder (self , __x : _Decimal , __y : _Decimal ) -> Decimal : ...
0 commit comments