Skip to content

Commit f01ece7

Browse files
committed
chore: *T -> *Type
1 parent 9b7a62e commit f01ece7

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

shiny/express/ui/_cm_components.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from ...ui._layout_columns import BreakpointsUser
1515
from ...ui._navs import (
1616
NavbarOptions,
17-
NavbarOptionsPositionT,
17+
NavbarOptionsPositionType,
1818
NavMenu,
1919
NavPanel,
2020
NavSet,
@@ -1080,7 +1080,7 @@ def navset_bar(
10801080
navbar_options: Optional[NavbarOptions] = None,
10811081
fluid: bool = True,
10821082
# Deprecated ----
1083-
position: NavbarOptionsPositionT | MISSING_TYPE = DEPRECATED,
1083+
position: NavbarOptionsPositionType | MISSING_TYPE = DEPRECATED,
10841084
bg: str | None | MISSING_TYPE = DEPRECATED,
10851085
inverse: bool | MISSING_TYPE = DEPRECATED,
10861086
underline: bool | MISSING_TYPE = DEPRECATED,

shiny/ui/_navs.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -995,16 +995,16 @@ def __init__(self, value: T):
995995
self._default = value
996996

997997

998-
NavbarOptionsPositionT = Literal[
998+
NavbarOptionsPositionType = Literal[
999999
"static-top", "fixed-top", "fixed-bottom", "sticky-top"
10001000
]
1001-
NavbarOptionsThemeT = Literal["auto", "light", "dark"]
1001+
NavbarOptionsThemeType = Literal["auto", "light", "dark"]
10021002

10031003

10041004
class NavbarOptions:
1005-
position: NavbarOptionsPositionT
1005+
position: NavbarOptionsPositionType
10061006
bg: Optional[str]
1007-
theme: NavbarOptionsThemeT
1007+
theme: NavbarOptionsThemeType
10081008
underline: bool
10091009
collapsible: bool
10101010
attrs: dict[str, Any]
@@ -1013,9 +1013,9 @@ class NavbarOptions:
10131013
def __init__(
10141014
self,
10151015
*,
1016-
position: NavbarOptionsPositionT | MISSING_TYPE = MISSING,
1016+
position: NavbarOptionsPositionType | MISSING_TYPE = MISSING,
10171017
bg: str | None | MISSING_TYPE = MISSING,
1018-
theme: NavbarOptionsThemeT | MISSING_TYPE = MISSING,
1018+
theme: NavbarOptionsThemeType | MISSING_TYPE = MISSING,
10191019
underline: bool | MISSING_TYPE = MISSING,
10201020
collapsible: bool | MISSING_TYPE = MISSING,
10211021
**attrs: TagAttrValue,
@@ -1070,9 +1070,9 @@ def __repr__(self):
10701070

10711071
@add_example()
10721072
def navbar_options(
1073-
position: NavbarOptionsPositionT | MISSING_TYPE = MISSING,
1073+
position: NavbarOptionsPositionType | MISSING_TYPE = MISSING,
10741074
bg: str | None | MISSING_TYPE = MISSING,
1075-
theme: NavbarOptionsThemeT | MISSING_TYPE = MISSING,
1075+
theme: NavbarOptionsThemeType | MISSING_TYPE = MISSING,
10761076
underline: bool | MISSING_TYPE = MISSING,
10771077
collapsible: bool | MISSING_TYPE = MISSING,
10781078
**attrs: TagAttrValue,
@@ -1120,7 +1120,7 @@ def navbar_options(
11201120

11211121
def navbar_options_resolve_deprecated(
11221122
options_user: Optional[NavbarOptions] = None,
1123-
position: NavbarOptionsPositionT | MISSING_TYPE = DEPRECATED,
1123+
position: NavbarOptionsPositionType | MISSING_TYPE = DEPRECATED,
11241124
bg: str | None | MISSING_TYPE = DEPRECATED,
11251125
inverse: bool | MISSING_TYPE = DEPRECATED,
11261126
underline: bool | MISSING_TYPE = DEPRECATED,
@@ -1377,7 +1377,7 @@ def navset_bar(
13771377
navbar_options: Optional[NavbarOptions] = None,
13781378
fluid: bool = True,
13791379
# Deprecated -- v1.3.0 2025-01 ----
1380-
position: NavbarOptionsPositionT | MISSING_TYPE = DEPRECATED,
1380+
position: NavbarOptionsPositionType | MISSING_TYPE = DEPRECATED,
13811381
bg: str | None | MISSING_TYPE = DEPRECATED,
13821382
inverse: bool | MISSING_TYPE = DEPRECATED,
13831383
underline: bool | MISSING_TYPE = DEPRECATED,

0 commit comments

Comments
 (0)