stdlib: add __slots__ (#14611)

This commit is contained in:
Jelle Zijlstra authored and GitHub committed 2025-08-21 07:24:59 -07:00
1 parent 28abff1eb3
commit f32d9f08bd
38 files changed
+247 -12

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ class _ConvertibleToIntegerRatio(Protocol):
def as_integer_ratio(self) -> tuple[int | Rational, int | Rational]: ...
class Fraction(Rational):
__slots__ = ("_numerator", "_denominator")
@overload
def __new__(cls, numerator: int | Rational = 0, denominator: int | Rational | None = None) -> Self: ...
@overload