mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 05:04:44 +08:00
Add date.fromisoformat() (#2393)
This commit is contained in:
1 parent
25ac4d6af4
commit
b209a649a0
1 file changed
+3
@@ -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