Skip to content

Commit 0309d76

Browse files
committed
chore: Update deprecation warnings
1 parent 2f4b42b commit 0309d76

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

shiny/ui/_navs.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,9 @@ def __init__(
10291029
self.collapsible = self._maybe_default("collapsible", collapsible, default=True)
10301030

10311031
if "inverse" in attrs:
1032-
warn_deprecated("`inverse` is deprecated, please use `type_` instead.")
1032+
warn_deprecated(
1033+
"`navbar_options()` does not support `inverse`, please use `type_` instead."
1034+
)
10331035
del attrs["inverse"]
10341036

10351037
self.attrs = attrs
@@ -1107,7 +1109,8 @@ def navbar_options_resolve_deprecated(
11071109
if args_deprecated:
11081110
args_deprecated = ", ".join([f"`{arg}`" for arg in args_deprecated])
11091111
warn_deprecated(
1110-
f"The arguments of `{fn_caller}()` for navbar options (including {args_deprecated}) "
1112+
"In shiny v1.3.0, the arguments of "
1113+
f"`{fn_caller}()` for navbar options (including {args_deprecated}) "
11111114
f"have been consolidated into a single `navbar_options` argument."
11121115
)
11131116

@@ -1137,7 +1140,9 @@ def navbar_options_resolve_deprecated(
11371140

11381141
if ignored:
11391142
warn_deprecated(
1140-
f"`{', '.join(ignored)}` {'was' if len(ignored) == 1 else 'were'} provided twice: once directly and once in `navbar_options`.\nThe deprecated direct option(s) will be ignored and the values from `navbar_options` will be used."
1143+
f"`{', '.join(ignored)}` {'was' if len(ignored) == 1 else 'were'} provided twice: "
1144+
"once directly and once in `navbar_options`.\n"
1145+
"The deprecated direct option(s) will be ignored and the values from `navbar_options` will be used."
11411146
)
11421147

11431148
attrs = options_resolved.pop("attrs", {})

0 commit comments

Comments
 (0)