Skip to content

Commit a8e8fd6

Browse files
committed
bump typing_extensions version, fix removed in str
1 parent 57ff7a1 commit a8e8fd6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dascore/utils/deprecate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _build_msg(func):
5151
# Build a clear message for both runtime and typing hint
5252
qual = f"{func.__module__}.{getattr(func, '__qualname__', func.__name__)}"
5353
since_str = f" since {since}" if since else ""
54-
removed_str = f" and will be removed in {removed_in}"
54+
removed_str = f" and will be removed in {removed_in}" if removed_in else ""
5555
info_str = f" {info}" if info else ""
5656
msg = f"{qual} is deprecated{since_str}{removed_str}.{info_str}"
5757
return msg

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ dependencies = [
5353
"rich",
5454
"scipy>=1.14.1",
5555
"tables>=3.7",
56-
"typing_extensions",
56+
"typing_extensions>=4.12",
5757
"pint",
5858
]
5959

0 commit comments

Comments
 (0)