File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
@tests/stubtest_allowlists Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ contextlib._GeneratorContextManagerBase.__init__ # skipped in the stubs in favo
16
16
ctypes.CDLL._FuncPtr # None at class level but initialized in __init__ to this value
17
17
ctypes.memmove # CFunctionType
18
18
ctypes.memset # CFunctionType
19
- fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
20
19
http.client.HTTPConnection.response_class # the actual type at runtime is abc.ABCMeta
21
20
importlib.abc.Loader.exec_module # See Lib/importlib/_abc.py. Might be defined for backwards compatibility
22
21
importlib.abc.MetaPathFinder.find_spec # Not defined on the actual class, but expected to exist.
Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ class Fraction(Rational):
27
27
@overload
28
28
def __new__ (cls , numerator : int | Rational = 0 , denominator : int | Rational | None = None ) -> Self : ...
29
29
@overload
30
- def __new__ (cls , value : float | Decimal | str , / ) -> Self : ...
30
+ def __new__ (cls , numerator : float | Decimal | str ) -> Self : ...
31
31
32
32
if sys .version_info >= (3 , 14 ):
33
33
@overload
34
- def __new__ (cls , value : _ConvertibleToIntegerRatio ) -> Self : ...
34
+ def __new__ (cls , numerator : _ConvertibleToIntegerRatio ) -> Self : ...
35
35
36
36
@classmethod
37
37
def from_float (cls , f : float ) -> Self : ...
You can’t perform that action at this time.
0 commit comments