summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>2022-06-19 02:59:05 +0000
committerAsif Saif Uddin <auvipy@gmail.com>2022-06-19 12:58:06 +0600
commit008b8f78cdc2bf2e8410f7b33800285a10a2c770 (patch)
tree5858bc82459d7e64c0e47fc78b00a8e7ba655329
parent72ec0e5c4862ab01f58b0fe3e322f598d0a93602 (diff)
downloadkombu-008b8f78cdc2bf2e8410f7b33800285a10a2c770.tar.gz
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
-rw-r--r--kombu/matcher.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/kombu/matcher.py b/kombu/matcher.py
index 498b443d..d18d6c3e 100644
--- a/kombu/matcher.py
+++ b/kombu/matcher.py
@@ -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."""
@@ -60,8 +60,8 @@ class MatcherRegistry:
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):