Closed
Description
I'm coming from a question in pandas-dev/pandas-stubs#223 asking about where mypy complains about me using a timedelta
as a "freq" argument to function pandas.date_range
:
Argument "freq" to "date_range" has incompatible type "timedelta"; expected "Union[str, BaseOffset]"
Since #6307 this is officially supported in at least for date_range
, but very probably for most other range functions.
From what I learned over in pandas-stubs, this repo's code (or rather docstrings) should explicitly document the new type support so that pandas-stubs may infer that for their stubs.