-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
TYP: use from __future__ import annotations more - batch 1 #41892
Conversation
after you have changed everything should create a rule to avoid Optional if this is possible. |
it is still needed when creating aliases although I could move all aliases definitions into if TYPE_CHECKING blocks or into pandas._typing where that makes sense. A couple of other points that have arisen from this exercise.. |
I think is we have a rule that if we import from typing we also use |
Might be easier to require that every file (except for init.py , api.py, tests, setup.py, and probably just a handful of others) contains this import. This could be done with |
sounds good |
can you rebase thisone |
Sorry for barging in but can someone link me to context for this? My understanding was that the recommendation is to prefer |
@mwaskom yeah it's just to use the latest |
I'm fairly sure that we agreed we would do this but leave it to just before the 1.3 release to reduce the chance of auto backports failing