From ca0100566fc659a3a35d593ed59b46bff7026913 Mon Sep 17 00:00:00 2001 From: UltimatePancake Date: Thu, 21 Nov 2024 14:06:35 +0100 Subject: [PATCH] dependency management --- notifications_utils/recipients.py | 4 ++-- requirements_for_test.txt | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/notifications_utils/recipients.py b/notifications_utils/recipients.py index 10c2b669f..2231d85dd 100644 --- a/notifications_utils/recipients.py +++ b/notifications_utils/recipients.py @@ -497,7 +497,7 @@ def normalise_phone_number(number): return number.lstrip("0") -@deprecated("Please use is_nl_phone_number()") +@deprecated(version="75.1.0-patch", reason="Superseded by is_nl_phone_number()") def is_uk_phone_number(number): if number.startswith("0") and not number.startswith("00"): return True @@ -569,7 +569,7 @@ def use_numeric_sender(number): return INTERNATIONAL_BILLING_RATES[prefix]["attributes"]["alpha"] == "NO" -@deprecated("Please use validate_nl_phone_number()") +@deprecated(version="75.1.0-patch", reason="Superseded by is_nl_phone_number()") def validate_uk_phone_number(number): number = normalise_phone_number(number).lstrip(uk_prefix).lstrip("0") diff --git a/requirements_for_test.txt b/requirements_for_test.txt index 1e0987c26..05954b1e2 100644 --- a/requirements_for_test.txt +++ b/requirements_for_test.txt @@ -14,4 +14,5 @@ pytest-profiling==1.7.0 redis>=4.3.4 # Earlier versions of redis miss features the tests need snakeviz==2.1.1 black==23.10.1 # Also update `.pre-commit-config.yaml` if this changes -ruff==0.0.272 # Also update `.pre-commit-config.yaml` if this changes \ No newline at end of file +ruff==0.0.272 # Also update `.pre-commit-config.yaml` if this changes +Deprecated==1.2.15 \ No newline at end of file