-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TYP: generate_regular_range #47295
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
TYP: generate_regular_range #47295
Conversation
@@ -11,13 +11,15 @@ | |||
[ | |||
# exclude tests | |||
"pandas/tests", | |||
# exclude vendored files | |||
"pandas/io/clipboard", | |||
"pandas/util/version", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xref #47287 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
periods: int, | ||
start: Timestamp | Timedelta | None, | ||
end: Timestamp | Timedelta | None, | ||
periods: int | None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Mind updating the docstring below for this argument that periods can be None?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
green and updated the doc-string
* TYP: generate_regular_range * update doc-string
generate_regular_range
seems to be only called from un-annotated places: mypy doesn't know that start/end/periods can actually be None.edit:
I'm not annotating the functions calling
generate_regular_range
in this PR as my aim with this PR is to simply makepandas/core/arrays/_ranges.py
compatible with pyright.