diff --git a/stdlib/2and3/numbers.pyi b/stdlib/2and3/numbers.pyi index e4f7603e62f8..2a3f493e229b 100644 --- a/stdlib/2and3/numbers.pyi +++ b/stdlib/2and3/numbers.pyi @@ -5,7 +5,7 @@ # Note: these stubs are incomplete. The more complex type # signatures are currently omitted. -from typing import Any, Optional, TypeVar +from typing import Any, Optional, TypeVar, SupportsFloat from abc import ABCMeta, abstractmethod import sys @@ -59,7 +59,7 @@ class Complex(Number): if sys.version_info < (3, 0): def __ne__(self, other: object) -> bool: ... -class Real(Complex): +class Real(Complex, SupportsFloat): @abstractmethod def __float__(self) -> float: ... @abstractmethod