-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TYP: use typing.final in indexes.base #37527
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
Conversation
pandas/core/indexes/base.py
Outdated
@@ -100,7 +100,12 @@ | |||
) | |||
|
|||
if TYPE_CHECKING: | |||
from typing import final |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you instead define this in _typing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh, i thought i couldnt bc of the static-checking thing, but it looks like i can. will update
lgtm. @simonjayhawkins if comments. |
Thanks @jbrockmendel lgtm |
cc @simonjayhawkins this imports final conditionally following how you did it with Literal