@@ -93,6 +93,9 @@ class time:
93
93
def microsecond (self ) -> int : ...
94
94
@property
95
95
def tzinfo (self ) -> Optional [_tzinfo ]: ...
96
+ if sys .version_info >= (3 , 6 ):
97
+ @property
98
+ def fold (self ) -> int : ...
96
99
97
100
def __le__ (self , other : time ) -> bool : ...
98
101
def __lt__ (self , other : time ) -> bool : ...
@@ -108,8 +111,13 @@ class time:
108
111
def utcoffset (self ) -> Optional [timedelta ]: ...
109
112
def tzname (self ) -> Optional [str ]: ...
110
113
def dst (self ) -> Optional [int ]: ...
111
- def replace (self , hour : int = ..., minute : int = ..., second : int = ...,
112
- microsecond : int = ..., tzinfo : Optional [_tzinfo ] = ...) -> time : ...
114
+ if sys .version_info >= (3 , 6 ):
115
+ def replace (self , hour : int = ..., minute : int = ..., second : int = ...,
116
+ microsecond : int = ..., tzinfo : Optional [_tzinfo ] = ...,
117
+ * , fold : int = ...) -> time : ...
118
+ else :
119
+ def replace (self , hour : int = ..., minute : int = ..., second : int = ...,
120
+ microsecond : int = ..., tzinfo : Optional [_tzinfo ] = ...) -> time : ...
113
121
114
122
_date = date
115
123
_time = time
@@ -168,9 +176,14 @@ class datetime:
168
176
max : ClassVar [datetime ]
169
177
resolution : ClassVar [timedelta ]
170
178
171
- def __init__ (self , year : int , month : int , day : int , hour : int = ...,
172
- minute : int = ..., second : int = ..., microsecond : int = ...,
173
- tzinfo : Optional [tzinfo ] = ...) -> None : ...
179
+ if sys .version_info >= (3 , 6 ):
180
+ def __init__ (self , year : int , month : int , day : int , hour : int = ...,
181
+ minute : int = ..., second : int = ..., microsecond : int = ...,
182
+ tzinfo : Optional [tzinfo ] = ..., * , fold : int = ...) -> None : ...
183
+ else :
184
+ def __init__ (self , year : int , month : int , day : int , hour : int = ...,
185
+ minute : int = ..., second : int = ..., microsecond : int = ...,
186
+ tzinfo : Optional [tzinfo ] = ...) -> None : ...
174
187
175
188
@property
176
189
def year (self ) -> int : ...
@@ -188,6 +201,9 @@ class datetime:
188
201
def microsecond (self ) -> int : ...
189
202
@property
190
203
def tzinfo (self ) -> Optional [_tzinfo ]: ...
204
+ if sys .version_info >= (3 , 6 ):
205
+ @property
206
+ def fold (self ) -> int : ...
191
207
192
208
@classmethod
193
209
def fromtimestamp (cls , t : float , tz : Optional [_tzinfo ] = ...) -> datetime : ...
@@ -201,8 +217,12 @@ class datetime:
201
217
def now (cls , tz : Optional [_tzinfo ] = ...) -> datetime : ...
202
218
@classmethod
203
219
def utcnow (cls ) -> datetime : ...
204
- @classmethod
205
- def combine (cls , date : date , time : time ) -> datetime : ...
220
+ if sys .version_info >= (3 , 6 ):
221
+ @classmethod
222
+ def combine (cls , date : date , time : time , tzinfo : Optional [_tzinfo ] = ...) -> datetime : ...
223
+ else :
224
+ @classmethod
225
+ def combine (cls , date : date , time : time ) -> datetime : ...
206
226
def strftime (self , fmt : _Text ) -> str : ...
207
227
if sys .version_info >= (3 ,):
208
228
def __format__ (self , fmt : str ) -> str : ...
@@ -216,9 +236,14 @@ class datetime:
216
236
def date (self ) -> _date : ...
217
237
def time (self ) -> _time : ...
218
238
def timetz (self ) -> _time : ...
219
- def replace (self , year : int = ..., month : int = ..., day : int = ..., hour : int = ...,
220
- minute : int = ..., second : int = ..., microsecond : int = ..., tzinfo :
221
- Optional [_tzinfo ] = ...) -> datetime : ...
239
+ if sys .version_info >= (3 , 6 ):
240
+ def replace (self , year : int = ..., month : int = ..., day : int = ..., hour : int = ...,
241
+ minute : int = ..., second : int = ..., microsecond : int = ..., tzinfo :
242
+ Optional [_tzinfo ] = ..., * , fold : int = ...) -> datetime : ...
243
+ else :
244
+ def replace (self , year : int = ..., month : int = ..., day : int = ..., hour : int = ...,
245
+ minute : int = ..., second : int = ..., microsecond : int = ..., tzinfo :
246
+ Optional [_tzinfo ] = ...) -> datetime : ...
222
247
if sys .version_info >= (3 , 3 ):
223
248
def astimezone (self , tz : Optional [_tzinfo ] = ...) -> datetime : ...
224
249
else :
0 commit comments