Skip to content

Commit

Permalink
Do not warn about deprecations until RC
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 17, 2023
1 parent bb38f92 commit ee043f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/util/warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def deprecated(
if isinstance(remove_version, str):
remove_version = Version(remove_version)

if remove_version <= base_version and not (current_version.is_prerelease and current_version.pre[0] not in ('b', 'rc')):
if remove_version <= base_version and not (current_version.is_prerelease and current_version.pre[0] != 'rc'):
# This error is mainly for developers to remove the deprecated.
raise ValueError(
f"{old!r} should have been removed in {remove_version}, current version {current_version}."
Expand Down

0 comments on commit ee043f7

Please sign in to comment.