Skip to content

Commit

Permalink
explicitely set constant to False on name parameters (#7581)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt authored Jan 7, 2025
1 parent 0a102aa commit 79e183c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion panel/param.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class Param(Pane):
usually to update the default Parameter values of the
underlying parameterized object.""")

name = param.String(default='', doc="""
name = param.String(default='', constant=False, doc="""
Title of the pane.""")

object = param.Parameter(default=None, allow_refs=False, doc="""
Expand Down
2 changes: 1 addition & 1 deletion panel/widgets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Widget(Reactive, WidgetBase):
disabled = param.Boolean(default=False, doc="""
Whether the widget is disabled.""")

name = param.String(default='')
name = param.String(default='', constant=False)

height = param.Integer(default=None, bounds=(0, None))

Expand Down
2 changes: 1 addition & 1 deletion panel/widgets/indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ class Trend(SyncableData, Indicator):
'fixed', 'stretch_width', 'stretch_height', 'stretch_both',
'scale_width', 'scale_height', 'scale_both', None])

name = param.String(doc="""The name or a short description of the card""")
name = param.String(constant=False, doc="""The name or a short description of the card""")

value = param.Parameter(default='auto', doc="""
The primary value to be displayed.""")
Expand Down
2 changes: 1 addition & 1 deletion panel/widgets/slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class _SliderBase(Widget):
Whether the slider should go from left-to-right ('ltr') or
right-to-left ('rtl').""")

name = param.String(default=None, doc="""
name = param.String(default=None, constant=False, doc="""
The name of the widget. Also used as the label of the widget. If not set,
the widget has no label.""")

Expand Down
2 changes: 1 addition & 1 deletion panel/widgets/speech_to_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Language(param.Parameterized):

country = param.String(doc="A country like 'United States'")

name = param.String(doc="""
name = param.String(constant=False, doc="""
The bcp 47 code uniquely identifying the language. For example
'en-US'.""")

Expand Down

0 comments on commit 79e183c

Please sign in to comment.