We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79a0b59 commit 7487f66Copy full SHA for 7487f66
stdlib/decimal.pyi
@@ -72,7 +72,7 @@ class Decimal:
72
def __new__(cls, value: _DecimalNew = "0", context: Context | None = None) -> Self: ...
73
if sys.version_info >= (3, 14):
74
@classmethod
75
- def from_number(cls, number: float, /) -> Self: ...
+ def from_number(cls, number: Decimal | float, /) -> Self: ...
76
77
78
def from_float(cls, f: float, /) -> Self: ...
0 commit comments