From 008b8f78cdc2bf2e8410f7b33800285a10a2c770 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 19 Jun 2022 02:59:05 +0000 Subject: [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- kombu/matcher.py | 8 ++++---- 1 file 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): -- cgit v1.2.1