Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 4, 2022
1 parent d912746 commit 6a12082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reg/predicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def __init__(self, *predicates):
p, q, r = key_getters
self.key = lambda **kw: (p(kw), q(kw), r(kw))
else:
self.key = lambda **kw: tuple([p(kw) for p in key_getters])
self.key = lambda **kw: tuple(p(kw) for p in key_getters)

def register(self, key, value):
if key in self.known_keys:
Expand Down Expand Up @@ -198,7 +198,7 @@ def key_dict_to_predicate_key(self, d):
expected value is used.
:returns: a tuple, to be used as a key for dispatching.
"""
return tuple([p.key_by_predicate_name(d) for p in self.predicates])
return tuple(p.key_by_predicate_name(d) for p in self.predicates)

def component(self, keys):
return next(self.all(keys), None)
Expand Down

0 comments on commit 6a12082

Please sign in to comment.