-
-
Notifications
You must be signed in to change notification settings - Fork 141
All occurences of freq should be a Union[str, BaseOffset] #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please provide an example that illustrates a type checker showing an error. |
|
Sorry to piggy-back here, but this seems like the best place to ask: in a tiny script, mypy complains about
As far as I understand, and offsets.pyi seems to agree, argument "freq" should also support If so, I would be happy to provide a PR. I am just very new to mypy with such heavy stubbing. |
The Pandas documentation for some functions that accept an offset does not seem to include https://pandas.pydata.org/docs/reference/api/pandas.date_range.html |
I will note that this may be in error as the underlying code ultimately calls |
The main issue here is that the docs for So can you open an issue in the If the docs are wrong, then create a new issue here to update the stubs. If the implementation is wrong, we leave things here as they are. |
My PR to update the Pandas documentation to include |
Please submit a PR here. Thanks! |
The one bug I could find was the method
bdate_range
which is annotated as astr
, but my suspicion is there are other occurrences asfreq
is a common parameterThe text was updated successfully, but these errors were encountered: