You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it should also accept float, so that type checkers won't complain on following code snippet:
importpandasaspdpd.Timedelta(3.5, 'hours')
Argument of type "float" cannot be assigned to parameter "value" of type "str | int | Timedelta | timedelta | timedelta64" in function "__new__"
Type "float" is not assignable to type "str | int | Timedelta | timedelta | timedelta64"
"float" is not assignable to "str"
"float" is not assignable to "int"
"float" is not assignable to "Timedelta"
"float" is not assignable to "timedelta"
"float" is not assignable to "timedelta64"
Pylance[reportArgumentType](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportArgumentType)
The text was updated successfully, but these errors were encountered:
The
value
parameter ofTimedelta
currently has the following type-hint:pandas-stubs/pandas-stubs/_libs/tslibs/timedeltas.pyi
Line 105 in f71224c
I think it should also accept float, so that type checkers won't complain on following code snippet:
The text was updated successfully, but these errors were encountered: