-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TYP: Fix typehints for ExtensionDtype #41097
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
Conversation
pyright was yelling at me that pandas/pandas/core/dtypes/base.py Line 427 in ac2e3e6
This should be ready for review if it passes CI. This is a very minor change but it helps removing |
@simonjayhawkins |
#40421 has conflicts and needs a merge master anyway. let's get this one in. |
Thanks @ozars small targeted PRs for adding/refining type annotations always welcome. |
Thank you. |
This is a fix for type hints of
ExtensionDtype
.register_extension_dtype
was confusing pyright autocomplete. It was fixed by parameterizing its return value on its input value.Example:
Before this change:
After: