File tree 3 files changed +9
-3
lines changed
Filter options
@tests/stubtest_allowlists 3 files changed +9
-3
lines changed
Original file line number Diff line number Diff line change @@ -27,8 +27,6 @@ asyncio.tasks.eager_task_factory
27
27
builtins.bytearray.resize
28
28
builtins.classmethod.__annotate__
29
29
builtins.classmethod.__class_getitem__
30
- builtins.complex.from_number
31
- builtins.float.from_number
32
30
builtins.int.__round__
33
31
builtins.memoryview.__class_getitem__
34
32
builtins.staticmethod.__annotate__
@@ -56,7 +54,6 @@ enum.EnumType.__signature__
56
54
faulthandler.dump_c_stack
57
55
fractions.Fraction.__pow__
58
56
fractions.Fraction.__rpow__
59
- fractions.Fraction.from_number
60
57
gzip.GzipFile.readinto
61
58
gzip.GzipFile.readinto1
62
59
gzip.compress
Original file line number Diff line number Diff line change @@ -400,6 +400,9 @@ class float:
400
400
def __abs__ (self ) -> float : ...
401
401
def __hash__ (self ) -> int : ...
402
402
def __bool__ (self ) -> bool : ...
403
+ if sys .version_info >= (3 , 14 ):
404
+ @classmethod
405
+ def from_number (cls , number : float | SupportsIndex | SupportsFloat , / ) -> Self : ...
403
406
404
407
class complex :
405
408
# Python doesn't currently accept SupportsComplex for the second argument
@@ -435,6 +438,9 @@ class complex:
435
438
def __bool__ (self ) -> bool : ...
436
439
if sys .version_info >= (3 , 11 ):
437
440
def __complex__ (self ) -> complex : ...
441
+ if sys .version_info >= (3 , 14 ):
442
+ @classmethod
443
+ def from_number (cls , number : complex | SupportsComplex | SupportsFloat | SupportsIndex , / ) -> Self : ...
438
444
439
445
class _FormatMapMapping (Protocol ):
440
446
def __getitem__ (self , key : str , / ) -> Any : ...
Original file line number Diff line number Diff line change @@ -145,3 +145,6 @@ class Fraction(Rational):
145
145
@property
146
146
def imag (self ) -> Literal [0 ]: ...
147
147
def conjugate (self ) -> Fraction : ...
148
+ if sys .version_info >= (3 , 14 ):
149
+ @classmethod
150
+ def from_number (cls , number : float | Rational | _ConvertibleToIntegerRatio ) -> Self : ...
You can’t perform that action at this time.
0 commit comments