Skip to content

Conversation

EkaterinaKuzkina
Copy link
Contributor

@EkaterinaKuzkina EkaterinaKuzkina 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 the following modules:
doc, pandas/_config, pandas/_testing, pandas/compat, pandas/conftests, pandas/errors, pandas/tseries, scripts

@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 jreback merged commit c4dd0bd into pandas-dev:main Mar 9, 2022
@jreback
Copy link
Contributor

jreback commented Mar 9, 2022

thanks @EkaterinaKuzkina

@EkaterinaKuzkina EkaterinaKuzkina deleted the TYP_init_misc_modules branch March 9, 2022 14:20
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