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'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.
The text was updated successfully, but these errors were encountered:
ojdo
changed the title
TYP/DOC: document timedelta in date_range (and possibly most other *_range) functions
TYP/DOC: date_range (and other *_range) functions support timedelta as freq parameter
Sep 8, 2022
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 functionpandas.date_range
: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.
The text was updated successfully, but these errors were encountered: