Skip to content

Commit afc0dd2

Browse files
committed
chore: format
1 parent 87e4abb commit afc0dd2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

shiny/ui/_navs.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,6 @@ def navbar_options_resolve_deprecated(
11591159

11601160
options_old["theme"] = "dark" if inverse_old else "light"
11611161

1162-
11631162
options_resolved = {
11641163
k: v
11651164
for k, v in vars(options_user).items()
@@ -1225,7 +1224,9 @@ def __init__(
12251224
self.fillable = fillable
12261225
self.gap = gap
12271226
self.padding = padding
1228-
self.navbar_options = navbar_options if navbar_options is not None else NavbarOptions()
1227+
self.navbar_options = (
1228+
navbar_options if navbar_options is not None else NavbarOptions()
1229+
)
12291230
self.fluid = fluid
12301231
self._is_page_level = False
12311232

@@ -1259,7 +1260,9 @@ def layout(self, nav: Tag, content: Tag) -> TagList:
12591260
# bslib supports navbar-default/navbar-inverse (which is no longer
12601261
# a thing in Bootstrap 5) in a way that's still useful, especially Bootswatch.
12611262
nav_final.add_class(
1262-
"navbar-inverse" if self.navbar_options.theme == "dark" else "navbar-default"
1263+
"navbar-inverse"
1264+
if self.navbar_options.theme == "dark"
1265+
else "navbar-default"
12631266
)
12641267

12651268
if self.navbar_options.bg:

0 commit comments

Comments
 (0)