@@ -118,13 +118,13 @@ class time:
118
118
resolution : ClassVar [timedelta ]
119
119
def __new__ (
120
120
cls ,
121
- hour : SupportsIndex = ... ,
122
- minute : SupportsIndex = ... ,
123
- second : SupportsIndex = ... ,
124
- microsecond : SupportsIndex = ... ,
125
- tzinfo : _TzInfo | None = ... ,
121
+ hour : SupportsIndex = 0 ,
122
+ minute : SupportsIndex = 0 ,
123
+ second : SupportsIndex = 0 ,
124
+ microsecond : SupportsIndex = 0 ,
125
+ tzinfo : _TzInfo | None = None ,
126
126
* ,
127
- fold : int = ... ,
127
+ fold : int = 0 ,
128
128
) -> Self : ...
129
129
@property
130
130
def hour (self ) -> int : ...
@@ -144,7 +144,7 @@ class time:
144
144
def __gt__ (self , value : time , / ) -> bool : ...
145
145
def __eq__ (self , value : object , / ) -> bool : ...
146
146
def __hash__ (self ) -> int : ...
147
- def isoformat (self , timespec : str = ... ) -> str : ...
147
+ def isoformat (self , timespec : str = "auto" ) -> str : ...
148
148
@classmethod
149
149
def fromisoformat (cls , time_string : str , / ) -> Self : ...
150
150
@@ -197,13 +197,13 @@ class timedelta:
197
197
resolution : ClassVar [timedelta ]
198
198
def __new__ (
199
199
cls ,
200
- days : float = ... ,
201
- seconds : float = ... ,
202
- microseconds : float = ... ,
203
- milliseconds : float = ... ,
204
- minutes : float = ... ,
205
- hours : float = ... ,
206
- weeks : float = ... ,
200
+ days : float = 0 ,
201
+ seconds : float = 0 ,
202
+ microseconds : float = 0 ,
203
+ milliseconds : float = 0 ,
204
+ minutes : float = 0 ,
205
+ hours : float = 0 ,
206
+ weeks : float = 0 ,
207
207
) -> Self : ...
208
208
@property
209
209
def days (self ) -> int : ...
@@ -247,13 +247,13 @@ class datetime(date):
247
247
year : SupportsIndex ,
248
248
month : SupportsIndex ,
249
249
day : SupportsIndex ,
250
- hour : SupportsIndex = ... ,
251
- minute : SupportsIndex = ... ,
252
- second : SupportsIndex = ... ,
253
- microsecond : SupportsIndex = ... ,
254
- tzinfo : _TzInfo | None = ... ,
250
+ hour : SupportsIndex = 0 ,
251
+ minute : SupportsIndex = 0 ,
252
+ second : SupportsIndex = 0 ,
253
+ microsecond : SupportsIndex = 0 ,
254
+ tzinfo : _TzInfo | None = None ,
255
255
* ,
256
- fold : int = ... ,
256
+ fold : int = 0 ,
257
257
) -> Self : ...
258
258
@property
259
259
def hour (self ) -> int : ...
@@ -272,10 +272,10 @@ class datetime(date):
272
272
# meaning it is only *safe* to pass it as a keyword argument on 3.12+
273
273
if sys .version_info >= (3 , 12 ):
274
274
@classmethod
275
- def fromtimestamp (cls , timestamp : float , tz : _TzInfo | None = ... ) -> Self : ...
275
+ def fromtimestamp (cls , timestamp : float , tz : _TzInfo | None = None ) -> Self : ...
276
276
else :
277
277
@classmethod
278
- def fromtimestamp (cls , timestamp : float , / , tz : _TzInfo | None = ... ) -> Self : ...
278
+ def fromtimestamp (cls , timestamp : float , / , tz : _TzInfo | None = None ) -> Self : ...
279
279
280
280
@classmethod
281
281
@deprecated ("Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc)" )
@@ -321,8 +321,8 @@ class datetime(date):
321
321
* ,
322
322
fold : int = ...,
323
323
) -> Self : ...
324
- def astimezone (self , tz : _TzInfo | None = ... ) -> Self : ...
325
- def isoformat (self , sep : str = ... , timespec : str = ... ) -> str : ...
324
+ def astimezone (self , tz : _TzInfo | None = None ) -> Self : ...
325
+ def isoformat (self , sep : str = "T" , timespec : str = "auto" ) -> str : ...
326
326
@classmethod
327
327
def strptime (cls , date_string : str , format : str , / ) -> Self : ...
328
328
def utcoffset (self ) -> timedelta | None : ...
0 commit comments