Skip to content

TYP: make na_value consistently a property #47676

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 3 commits into from
Jul 12, 2022
Merged

TYP: make na_value consistently a property #47676

merged 3 commits into from
Jul 12, 2022

Conversation

twoertwein
Copy link
Member

@twoertwein twoertwein commented Jul 12, 2022

Similar to _engine_type, na_value is sometimes a property and sometimes a class variable.

There were multiple places that access StringDtype.na_value (works with class variables but not properties). I replaced these cases with the value of StringDtype().na_value.

(and one _engine_type class variable I forgot in another PR)

@mroeschke mroeschke added this to the 1.5 milestone Jul 12, 2022
@mroeschke mroeschke added the Typing type annotations, mypy/pyright type checking label Jul 12, 2022
@mroeschke mroeschke merged commit de40565 into pandas-dev:main Jul 12, 2022
@mroeschke
Copy link
Member

Thanks @twoertwein

yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
* TYP: make na_value consistently a property

* property

* replace a few more class accesses
@twoertwein twoertwein deleted the na_value branch September 10, 2022 01:39
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