add timespec arg to datetime.time.isoformat (#3432)

Close #3431
This commit is contained in:
bianca rosa
2019-11-01 07:25:15 -03:00
committed by Sebastian Rittau
parent 616cb0bb65
commit 4b8c6bbea1

View File

@@ -114,7 +114,10 @@ class time:
def __ge__(self, other: time) -> bool: ...
def __gt__(self, other: time) -> bool: ...
def __hash__(self) -> int: ...
def isoformat(self) -> str: ...
if sys.version_info >= (3, 6):
def isoformat(self, timespec: str = ...) -> str: ...
else:
def isoformat(self) -> str: ...
if sys.version_info >= (3, 7):
@classmethod
def fromisoformat(cls: Type[_S], time_string: str) -> _S: ...