Skip to content

TYP: StorageExtensionDtype.na_values #47300

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

Merged
merged 2 commits into from
Jun 10, 2022
Merged

TYP: StorageExtensionDtype.na_values #47300

merged 2 commits into from
Jun 10, 2022

Conversation

twoertwein
Copy link
Member

ExtensionDtype.na_value is a property: sub-classes should also use property and not a variable (or ExtensionDtype should use a variable).

@@ -22,7 +22,6 @@ class ArrowDtype(StorageExtensionDtype):
Modeled after BaseMaskedDtype
"""

na_value = libmissing.NA
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already defined in StorageExtensionDtype

@twoertwein twoertwein requested a review from mroeschke June 10, 2022 12:43
@mroeschke mroeschke added the Typing type annotations, mypy/pyright type checking label Jun 10, 2022
@mroeschke mroeschke added this to the 1.5 milestone Jun 10, 2022
@mroeschke mroeschke merged commit db2f241 into pandas-dev:main Jun 10, 2022
@mroeschke
Copy link
Member

Thanks! (Failure unrelated)

yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
* TYP: StorageExtensionDtype.na_values

* flake8
@twoertwein twoertwein deleted the na_values branch September 21, 2022 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants