Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zigaLuksic committed Nov 13, 2023
1 parent 65d4d58 commit 0e4ab59
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sentinelhub/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from typing import Any, Callable

import requests
from typing_extensions import deprecated


class BaseSentinelHubException(Exception):
Expand Down Expand Up @@ -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]:
Expand All @@ -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]:
Expand Down

0 comments on commit 0e4ab59

Please sign in to comment.