From 99e217f0b234748cdd51e8f6304f8815bc9b0811 Mon Sep 17 00:00:00 2001 From: Damian Vicino Date: Fri, 13 Dec 2024 14:14:31 -0500 Subject: [PATCH 1/3] 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 f10cb4157365d414b21c15b0f8f7b66620717d0b 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/3] [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 From 267536e1b7741614da8adb961ffdc714d7a4a77f Mon Sep 17 00:00:00 2001 From: Damian Vicino Date: Wed, 22 Oct 2025 14:05:08 -0400 Subject: [PATCH 3/3] Adding feature declaration file for 121 --- changes/121.feature | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/121.feature diff --git a/changes/121.feature b/changes/121.feature new file mode 100644 index 0000000..20be8cc --- /dev/null +++ b/changes/121.feature @@ -0,0 +1 @@ +Adding type hints to be mypy compliant