From ac35b1f8740cf2e245d32f66231ba95aa89f5bf5 Mon Sep 17 00:00:00 2001 From: Damian Vicino Date: Fri, 13 Dec 2024 14:14:31 -0500 Subject: [PATCH 1/2] Adding type hints to be mypy compliant --- giturlparse/platforms/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/giturlparse/platforms/base.py b/giturlparse/platforms/base.py index 8ca9bad..2f02f3a 100644 --- a/giturlparse/platforms/base.py +++ b/giturlparse/platforms/base.py @@ -17,9 +17,9 @@ class BasePlatform: } # None means it matches all domains - DOMAINS = None - SKIP_DOMAINS = None - DEFAULTS = {} + DOMAINS: tuple[str, ...]|None = None + SKIP_DOMAINS: tuple[str, ...]|None = None + DEFAULTS : dict[str, str] = {} def __init__(self): # Precompile PATTERNS From da9622863c7b652348a480d53ad3bfe659f0aa58 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 19:25:51 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- giturlparse/platforms/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/giturlparse/platforms/base.py b/giturlparse/platforms/base.py index 2f02f3a..9046aa5 100644 --- a/giturlparse/platforms/base.py +++ b/giturlparse/platforms/base.py @@ -17,9 +17,9 @@ class BasePlatform: } # None means it matches all domains - DOMAINS: tuple[str, ...]|None = None - SKIP_DOMAINS: tuple[str, ...]|None = None - DEFAULTS : dict[str, str] = {} + DOMAINS: tuple[str, ...] | None = None + SKIP_DOMAINS: tuple[str, ...] | None = None + DEFAULTS: dict[str, str] = {} def __init__(self): # Precompile PATTERNS