mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Add stub for datetime.time.fromisoformat introduced in 3.7 (#2426)
This commit is contained in:
committed by
Sebastian Rittau
parent
2e1c81684e
commit
50b5650a11
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user