-
-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
[Refactor] qmk find
#21096
[Refactor] qmk find
#21096
Conversation
qmk find
Thank you for your contribution! |
Thank you for your contribution! |
15f8d93
to
ec8e6d1
Compare
ec8e6d1
to
486bf44
Compare
486bf44
to
30e6126
Compare
Changed the code substantially, existing review does not apply anymore |
continue | ||
|
||
cli.log.info(f'Filtering on condition: {{fg_green}}{func_name}{{fg_reset}}({{fg_cyan}}{key}{{fg_reset}})...') | ||
filter_class = _get_filter_class(func_name, key, value) |
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.
This code is no longer checking that the binary (key and value) filters receive value != None
. Shall perhaps add it back
Description
Followup to #21090, move from
if/else
into afunc_name: lambda
mapping and use partial to capture the values.This reduces some duplication and makes it a little easier to add a new filter.
Types of Changes
Issues Fixed or Closed by This PR
Checklist