-
Notifications
You must be signed in to change notification settings - Fork 110
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
Use only dots to delimit controls #9942
Conversation
068c4ad
to
2d25df7
Compare
CodSpeed Performance ReportMerging #9942 will improve performances by 10.15%Comparing Summary
Benchmarks breakdown
|
e6241f0
to
b084afc
Compare
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!
def _get_control_index(name: str): | ||
try: | ||
matching_index = formatted_control_names.index(name.replace("-", ".")) | ||
return matching_index | ||
except ValueError: | ||
pass | ||
|
||
return formatted_control_names_dotdash.index(name) |
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.
Eventually this should disappear, since using the dash is deprecated. Maybe a comment?
b084afc
to
6f66d73
Compare
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!
6f66d73
to
3738bc8
Compare
Issue
Resolves #9816
Approach
Keep backward compatibility (should be deprecated?) but accept only
.
notation to delimit control names, variable/index etc