mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
Fix datetime.fromtimestamp (#759)
This commit is contained in:
committed by
Guido van Rossum
parent
918dab66d0
commit
3cae92253b
@@ -175,7 +175,7 @@ class datetime:
|
||||
def tzinfo(self) -> Optional[_tzinfo]: ...
|
||||
|
||||
@classmethod
|
||||
def fromtimestamp(cls, t: float, tz: Optional[timezone] = ...) -> datetime: ...
|
||||
def fromtimestamp(cls, t: float, tz: Optional[_tzinfo] = ...) -> datetime: ...
|
||||
@classmethod
|
||||
def utcfromtimestamp(cls, t: float) -> datetime: ...
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user