Add stub for datetime.time.fromisoformat introduced in 3.7 (#2426)

This commit is contained in:
Emil Hessman authored and Sebastian Rittau committed 2018-09-04 16:35:56 +02:00
1 parent 2e1c81684e
commit 50b5650a11
1 file changed
+3
+3
View File
@@ -106,6 +106,9 @@ class time:
def __gt__(self, other: time) -> bool: ...
def __hash__(self) -> int: ...
def isoformat(self) -> str: ...
if sys.version_info >= (3, 7):
@classmethod
def fromisoformat(cls, time_string: str) -> time: ...
def strftime(self, fmt: _Text) -> str: ...
if sys.version_info >= (3,):
def __format__(self, fmt: str) -> str: ...