Open headtr1ck opened 6 days ago
Thanks for the report. I agree - we can change list
to Sequence
at https://github.com/pandas-dev/pandas-stubs/blob/9d5348ead9216053d4e8d7d2b1c592c0065b9760/pandas-stubs/core/tools/timedeltas.pyi#L35
PR with test welcome.
Describe the bug
to_timedelta
uses a list of a union argument type. This will raise false positive errors when passing a list of a single type because list is invariant.To Reproduce
produces:
Please complete the following information:
pandas-stubs
2.2.2.240603