mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Fixes a few tzinfo method's return type (#253)
This commit is contained in:
committed by
Guido van Rossum
parent
2c52d9a612
commit
31a97363a9
@@ -10,8 +10,8 @@ MAXYEAR = 0
|
||||
|
||||
class tzinfo(object):
|
||||
def tzname(self, dt: Optional[datetime]) -> str: ...
|
||||
def utcoffset(self, dt: Optional[datetime]) -> int: ...
|
||||
def dst(self, dt: Optional[datetime]) -> int: ...
|
||||
def utcoffset(self, dt: Optional[datetime]) -> timedelta: ...
|
||||
def dst(self, dt: Optional[datetime]) -> timedelta: ...
|
||||
def fromutc(self, dt: datetime) -> datetime: ...
|
||||
|
||||
class timezone(tzinfo):
|
||||
|
||||
Reference in New Issue
Block a user