stdlib: Add several missing @abstractmethod decorators (#7443)

This commit is contained in:
Alex Waygood
2022-03-07 00:41:13 +00:00
committed by GitHub
parent 2fb9c35ff9
commit 947724a5cb
7 changed files with 29 additions and 4 deletions

View File

@@ -42,8 +42,11 @@ class Complex(Number):
def __pow__(self, exponent: Any) -> Any: ...
@abstractmethod
def __rpow__(self, base: Any) -> Any: ...
@abstractmethod
def __abs__(self) -> Real: ...
@abstractmethod
def conjugate(self) -> Any: ...
@abstractmethod
def __eq__(self, other: object) -> bool: ...
class Real(Complex, SupportsFloat):