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] authored and auvipy committed Jun 19, 2022
1 parent 72ec0e5 commit 008b8f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kombu/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class MatcherRegistry:
matcher_pattern_first = ["pcre", ]

def __init__(self) -> None:
self._matchers: Dict[str, MatcherFunction] = {}
self._default_matcher: Optional[MatcherFunction] = None
self._matchers: dict[str, MatcherFunction] = {}
self._default_matcher: MatcherFunction | None = None

def register(self, name: str, matcher: MatcherFunction) -> None:
"""Add matcher by name to the registry."""
Expand Down Expand Up @@ -60,8 +60,8 @@ def match(
self,
data: bytes,
pattern: bytes,
matcher: Optional[str] = None,
matcher_kwargs: Optional[Dict[str, str]] = None
matcher: str | None = None,
matcher_kwargs: dict[str, str] | None = None
) -> bool:
"""Call the matcher."""
if matcher and not self._matchers.get(matcher):
Expand Down

0 comments on commit 008b8f7

Please sign in to comment.