Skip to content

Commit

Permalink
better deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Dec 11, 2023
1 parent 98cc605 commit c4ecbf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stripe/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@

logger: logging.Logger = logging.getLogger("stripe")

if hasattr(typing_extensions, "deprecated"):
if TYPE_CHECKING:
deprecated = typing_extensions.deprecated
elif not TYPE_CHECKING:
else:
_T = TypeVar("_T")

# Copied from python/typing_extensions, as this was added in typing_extensions 4.5.0 which is incompatible with
Expand Down

0 comments on commit c4ecbf2

Please sign in to comment.