Skip to content

Conversation

@nafarya
Copy link
Contributor

@nafarya nafarya commented Mar 8, 2022

According to documentation pandas uses PEP484 for type hints.
PEP484 states that __init__ function should have -> None return type annotation.
In this PR I added return type annotation to __init__ functions in pandas/core module.
Thanks!

@jreback jreback added this to the 1.5 milestone Mar 9, 2022
@jreback jreback added the Typing type annotations, mypy/pyright type checking label Mar 9, 2022
@jreback
Copy link
Contributor

jreback commented Mar 9, 2022

lots of failures

@nafarya
Copy link
Contributor Author

nafarya commented Mar 10, 2022

lots of failures

Hi! Updated branch with latest changes from main and now it looks fine. (All 3 failures are regarding Azure building and you mention here, that these failures might be legit)

@jreback jreback merged commit 56f27d7 into pandas-dev:main Mar 16, 2022
@jreback
Copy link
Contributor

jreback commented Mar 16, 2022

thanks @nafarya

yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
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