-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TYP: returning None for __init__ #46337
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
Comments
I'm in favor of adding From PEP 484:
As far as I understand it: we should definitely add |
Looking at |
I think that now we are looking to make the pandas types public, we should probably add the In the early days, before we had |
from #27418 (comment)
so maybe why not formalized in https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#style-guidelines. |
ok i am going to merge the existing PRs. let's close this issue with an update for the style guide. (and ideally change everything in a small number of PRs) |
xref #44677 (comment)
we originally had a decision not to type annotate returning None for init
can other folks weigh in here? We have a number of PRs which do exactly this (I merged one or 2 then saw the comments)
e.g. #46283 and a few others.
cc @simonjayhawkins @twoertwein @Dr-Irv @phofl
The text was updated successfully, but these errors were encountered: