From 0e4ab59228831feeab3eaf1d818c818339c0c7a9 Mon Sep 17 00:00:00 2001 From: Ziga Luksic Date: Mon, 13 Nov 2023 10:40:58 +0100 Subject: [PATCH] add comments --- sentinelhub/exceptions.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sentinelhub/exceptions.py b/sentinelhub/exceptions.py index 5017fa82..99db0ec9 100644 --- a/sentinelhub/exceptions.py +++ b/sentinelhub/exceptions.py @@ -7,7 +7,6 @@ from typing import Any, Callable import requests -from typing_extensions import deprecated class BaseSentinelHubException(Exception): @@ -64,7 +63,7 @@ class SHRateLimitWarning(SHRuntimeWarning): warnings.simplefilter("always", SHRateLimitWarning) -@deprecated("Ironic, is it not? Use `typing_extensions.deprecated`.", category=SHDeprecationWarning) +# THIS SHOULD BE REMOVED IN THE FUTURE, after rest of libraries transition away. def deprecated_function( category: type[DeprecationWarning] = SHDeprecationWarning, message_suffix: str | None = None ) -> Callable[[Callable], Callable]: @@ -88,7 +87,7 @@ def wrapper(*args: Any, **kwargs: Any) -> Any: return deco -@deprecated("Ironic, is it not? Use `typing_extensions.deprecated`.", category=SHDeprecationWarning) +# THIS SHOULD BE REMOVED IN THE FUTURE, after rest of libraries transition away. def deprecated_class( category: type[DeprecationWarning] = SHDeprecationWarning, message_suffix: str | None = None ) -> Callable[[type], type]: