Skip to content

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

Merged
merged 10 commits into from
Nov 1, 2020

Conversation

jbrockmendel
Copy link
Member

cc @simonjayhawkins this imports final conditionally following how you did it with Literal

@@ -100,7 +100,12 @@
)

if TYPE_CHECKING:
from typing import final
Copy link
Contributor

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?

Copy link
Member Author

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

@jreback jreback added the Typing type annotations, mypy/pyright type checking label Oct 31, 2020
@jreback jreback added this to the 1.2 milestone Oct 31, 2020
@jreback
Copy link
Contributor

jreback commented Oct 31, 2020

lgtm. @simonjayhawkins if comments.

@simonjayhawkins simonjayhawkins merged commit 6092dc7 into pandas-dev:master Nov 1, 2020
@simonjayhawkins
Copy link
Member

Thanks @jbrockmendel lgtm

@jbrockmendel jbrockmendel deleted the ref-final branch November 1, 2020 14:47
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
ukarroum pushed a commit to ukarroum/pandas that referenced this pull request Nov 2, 2020
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.

3 participants