mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add date.fromisoformat() (#2393)
This commit is contained in:
committed by
Jelle Zijlstra
parent
25ac4d6af4
commit
b209a649a0
@@ -43,6 +43,9 @@ class date:
|
||||
def today(cls) -> date: ...
|
||||
@classmethod
|
||||
def fromordinal(cls, n: int) -> date: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
@classmethod
|
||||
def fromisoformat(cls, date_string: str) -> date: ...
|
||||
|
||||
@property
|
||||
def year(self) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user