File tree 2 files changed +4
-13
lines changed 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -14,16 +14,7 @@ class tzinfo(object):
14
14
def dst (self , dt : Optional [datetime ]) -> Optional [timedelta ]: ...
15
15
def fromutc (self , dt : datetime ) -> datetime : ...
16
16
17
- class timezone (tzinfo ):
18
- utc = ... # type: tzinfo
19
- min = ... # type: tzinfo
20
- max = ... # type: tzinfo
21
-
22
- def __init__ (self , offset : timedelta , name : str = ...) -> None : ...
23
- def __hash__ (self ) -> int : ...
24
-
25
17
_tzinfo = tzinfo
26
- _timezone = timezone
27
18
28
19
class date (object ):
29
20
min = ... # type: date
@@ -173,7 +164,7 @@ class datetime(object):
173
164
def tzinfo (self ) -> _tzinfo : ...
174
165
175
166
@classmethod
176
- def fromtimestamp (cls , t : float , tz : timezone = ...) -> datetime : ...
167
+ def fromtimestamp (cls , t : float , tz : _tzinfo = ...) -> datetime : ...
177
168
@classmethod
178
169
def utcfromtimestamp (cls , t : float ) -> datetime : ...
179
170
@classmethod
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ class tzinfo:
14
14
def fromutc (self , dt : datetime ) -> datetime : ...
15
15
16
16
class timezone (tzinfo ):
17
- utc = ... # type: tzinfo
18
- min = ... # type: tzinfo
19
- max = ... # type: tzinfo
17
+ utc = ... # type: timezone
18
+ min = ... # type: timezone
19
+ max = ... # type: timezone
20
20
21
21
def __init__ (self , offset : timedelta , name : str = ...) -> None : ...
22
22
def __hash__ (self ) -> int : ...
You can’t perform that action at this time.
0 commit comments