mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 10:51:15 +08:00
int.denominator, int.imag: More precise return types (#8266)
This commit is contained in:
@@ -205,11 +205,11 @@ class int:
|
||||
@property
|
||||
def real(self) -> int: ...
|
||||
@property
|
||||
def imag(self) -> int: ...
|
||||
def imag(self) -> Literal[0]: ...
|
||||
@property
|
||||
def numerator(self) -> int: ...
|
||||
@property
|
||||
def denominator(self) -> int: ...
|
||||
def denominator(self) -> Literal[1]: ...
|
||||
def conjugate(self) -> int: ...
|
||||
def bit_length(self) -> int: ...
|
||||
if sys.version_info >= (3, 10):
|
||||
|
||||
Reference in New Issue
Block a user