-
-
Notifications
You must be signed in to change notification settings - Fork 154
GH1317 Set defaults #1491
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
base: main
Are you sure you want to change the base?
GH1317 Set defaults #1491
Conversation
cmp0xff
left a 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.
Just managed to review pandas-stubs/core/indexes/interval.pyi. Will check the other two files later.
cmp0xff
left a 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.
Please double check readers.pyi. I do not necessarily make the same suggestion in all overloads.
| memory_map: bool = False, | ||
| float_precision: Literal["high", "legacy", "round_trip"] | None = None, | ||
| storage_options: StorageOptions | None = None, | ||
| dtype_backend: DtypeBackend | _NoDefaultDoNotUse = ..., |
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.
| dtype_backend: DtypeBackend | _NoDefaultDoNotUse = ..., | |
| dtype_backend: DtypeBackend | no_default = no_default, |
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.
For those I have kept them simple ... since it would raise a lint for Only simple default values allowed for typed arguments [PYI011], let me know if you want me to go ahead and have a noqa next to it.
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.
@MarcoGorelli I think you had experience with this. How would you proceed? Thanks.
cmp0xff
left a 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.
I have reviewed all changes.
| memory_map: bool = False, | ||
| float_precision: Literal["high", "legacy", "round_trip"] | None = None, | ||
| storage_options: StorageOptions | None = None, | ||
| dtype_backend: DtypeBackend | _NoDefaultDoNotUse = ..., |
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.
@MarcoGorelli I think you had experience with this. How would you proceed? Thanks.
|
@cmp0xff I should have tackled all the feedback, thanks for that! |
cmp0xff
left a 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.
I think that's all comments from my side. Let's wait for https://github.com/pandas-dev/pandas-stubs/pull/1491/files#r2537067277.
Co-authored-by: Yi-Fan Wang <[email protected]>
Co-authored-by: Yi-Fan Wang <[email protected]>
assert_type()to assert the type of any return value