File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -99,16 +99,16 @@ class timedelta(SupportsAbs[timedelta]):
99
99
min : ClassVar [timedelta ]
100
100
max : ClassVar [timedelta ]
101
101
resolution : ClassVar [timedelta ]
102
- def __init__ (
103
- self ,
102
+ def __new__ (
103
+ cls : Type [ _S ] ,
104
104
days : float = ...,
105
105
seconds : float = ...,
106
106
microseconds : float = ...,
107
107
milliseconds : float = ...,
108
108
minutes : float = ...,
109
109
hours : float = ...,
110
110
weeks : float = ...,
111
- ) -> None : ...
111
+ ) -> _S : ...
112
112
@property
113
113
def days (self ) -> int : ...
114
114
@property
Original file line number Diff line number Diff line change @@ -139,18 +139,16 @@ class timedelta(SupportsAbs[timedelta]):
139
139
min : ClassVar [timedelta ]
140
140
max : ClassVar [timedelta ]
141
141
resolution : ClassVar [timedelta ]
142
- def __init__ (
143
- self ,
142
+ def __new__ (
143
+ cls : Type [ _S ] ,
144
144
days : float = ...,
145
145
seconds : float = ...,
146
146
microseconds : float = ...,
147
147
milliseconds : float = ...,
148
148
minutes : float = ...,
149
149
hours : float = ...,
150
150
weeks : float = ...,
151
- * ,
152
- fold : int = ...,
153
- ) -> None : ...
151
+ ) -> _S : ...
154
152
@property
155
153
def days (self ) -> int : ...
156
154
@property
You can’t perform that action at this time.
0 commit comments