-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TYP: some types for pandas/_config/config.py #29897
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: some types for pandas/_config/config.py #29897
Conversation
small comments, non-blockers, LGTM |
LGTM |
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.
lgtm. optional comment to maybe address or merge if you disagree
raise ValueError("{k} is not a valid identifier".format(k=k)) | ||
# NOTE: tokenize.Name is not a public constant | ||
# error: Module has no attribute "Name" [attr-defined] | ||
if not re.match("^" + tokenize.Name + "$", k): # type: ignore |
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.
Maybe worth considering tokenize.Name
to \w+
; it hasn't changed in 9 years:
thanks @simonjayhawkins, @WillAyd comment might be worth a followup |
The ignore was removed in #36012, since Name was added to the stub for tokenize. I don't think a follow-up now needed or we need to change our usage. |
broken off #28339