Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 4e16cce

Browse files
committed
Generate all components with explicit args.
1 parent c5069e8 commit 4e16cce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+1306
-654
lines changed

dash_html_components/A.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
from dash.development.base_component import Component
3+
from dash.development.base_component import Component, _explicitize_args
44

55

66
class A(Component):
@@ -44,7 +44,8 @@ class A(Component):
4444
- title (string; optional): Text to be displayed in a tooltip when hovering over the element.
4545
4646
Available events: 'click'"""
47-
def __init__(self, children=None, **kwargs):
47+
@_explicitize_args
48+
def __init__(self, children=None, id=None, n_clicks=None, n_clicks_timestamp=None, key=None, role=None, download=None, href=None, hrefLang=None, media=None, rel=None, shape=None, target=None, accessKey=None, className=None, contentEditable=None, contextMenu=None, dir=None, draggable=None, hidden=None, lang=None, spellCheck=None, style=None, tabIndex=None, title=None, fireEvent=None, dashEvents=None, **kwargs):
4849
self._prop_names = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'download', 'href', 'hrefLang', 'media', 'rel', 'shape', 'target', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
4950
self._type = 'A'
5051
self._namespace = 'dash_html_components'
@@ -53,12 +54,16 @@ def __init__(self, children=None, **kwargs):
5354
self.available_properties = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'download', 'href', 'hrefLang', 'media', 'rel', 'shape', 'target', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
5455
self.available_wildcard_properties = ['data-', 'aria-']
5556

57+
_explicit_params = kwargs.pop('_explicit_params')
58+
_locals = locals()
59+
_locals.update(kwargs) # For wildcard attrs
60+
args = {k: _locals[k] for k in _explicit_params if k != 'children'}
61+
5662
for k in []:
57-
if k not in kwargs:
63+
if k not in args:
5864
raise TypeError(
5965
'Required argument `' + k + '` was not specified.')
60-
61-
super(A, self).__init__(children=children, **kwargs)
66+
super(A, self).__init__(children=children, **args)
6267

6368
def __repr__(self):
6469
if(any(getattr(self, c, None) is not None

dash_html_components/Abbr.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
from dash.development.base_component import Component
3+
from dash.development.base_component import Component, _explicitize_args
44

55

66
class Abbr(Component):
@@ -37,7 +37,8 @@ class Abbr(Component):
3737
- title (string; optional): Text to be displayed in a tooltip when hovering over the element.
3838
3939
Available events: 'click'"""
40-
def __init__(self, children=None, **kwargs):
40+
@_explicitize_args
41+
def __init__(self, children=None, id=None, n_clicks=None, n_clicks_timestamp=None, key=None, role=None, accessKey=None, className=None, contentEditable=None, contextMenu=None, dir=None, draggable=None, hidden=None, lang=None, spellCheck=None, style=None, tabIndex=None, title=None, fireEvent=None, dashEvents=None, **kwargs):
4142
self._prop_names = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
4243
self._type = 'Abbr'
4344
self._namespace = 'dash_html_components'
@@ -46,12 +47,16 @@ def __init__(self, children=None, **kwargs):
4647
self.available_properties = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
4748
self.available_wildcard_properties = ['data-', 'aria-']
4849

50+
_explicit_params = kwargs.pop('_explicit_params')
51+
_locals = locals()
52+
_locals.update(kwargs) # For wildcard attrs
53+
args = {k: _locals[k] for k in _explicit_params if k != 'children'}
54+
4955
for k in []:
50-
if k not in kwargs:
56+
if k not in args:
5157
raise TypeError(
5258
'Required argument `' + k + '` was not specified.')
53-
54-
super(Abbr, self).__init__(children=children, **kwargs)
59+
super(Abbr, self).__init__(children=children, **args)
5560

5661
def __repr__(self):
5762
if(any(getattr(self, c, None) is not None

dash_html_components/Acronym.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
from dash.development.base_component import Component
3+
from dash.development.base_component import Component, _explicitize_args
44

55

66
class Acronym(Component):
@@ -37,7 +37,8 @@ class Acronym(Component):
3737
- title (string; optional): Text to be displayed in a tooltip when hovering over the element.
3838
3939
Available events: 'click'"""
40-
def __init__(self, children=None, **kwargs):
40+
@_explicitize_args
41+
def __init__(self, children=None, id=None, n_clicks=None, n_clicks_timestamp=None, key=None, role=None, accessKey=None, className=None, contentEditable=None, contextMenu=None, dir=None, draggable=None, hidden=None, lang=None, spellCheck=None, style=None, tabIndex=None, title=None, fireEvent=None, dashEvents=None, **kwargs):
4142
self._prop_names = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
4243
self._type = 'Acronym'
4344
self._namespace = 'dash_html_components'
@@ -46,12 +47,16 @@ def __init__(self, children=None, **kwargs):
4647
self.available_properties = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
4748
self.available_wildcard_properties = ['data-', 'aria-']
4849

50+
_explicit_params = kwargs.pop('_explicit_params')
51+
_locals = locals()
52+
_locals.update(kwargs) # For wildcard attrs
53+
args = {k: _locals[k] for k in _explicit_params if k != 'children'}
54+
4955
for k in []:
50-
if k not in kwargs:
56+
if k not in args:
5157
raise TypeError(
5258
'Required argument `' + k + '` was not specified.')
53-
54-
super(Acronym, self).__init__(children=children, **kwargs)
59+
super(Acronym, self).__init__(children=children, **args)
5560

5661
def __repr__(self):
5762
if(any(getattr(self, c, None) is not None

dash_html_components/Address.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
from dash.development.base_component import Component
3+
from dash.development.base_component import Component, _explicitize_args
44

55

66
class Address(Component):
@@ -37,7 +37,8 @@ class Address(Component):
3737
- title (string; optional): Text to be displayed in a tooltip when hovering over the element.
3838
3939
Available events: 'click'"""
40-
def __init__(self, children=None, **kwargs):
40+
@_explicitize_args
41+
def __init__(self, children=None, id=None, n_clicks=None, n_clicks_timestamp=None, key=None, role=None, accessKey=None, className=None, contentEditable=None, contextMenu=None, dir=None, draggable=None, hidden=None, lang=None, spellCheck=None, style=None, tabIndex=None, title=None, fireEvent=None, dashEvents=None, **kwargs):
4142
self._prop_names = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
4243
self._type = 'Address'
4344
self._namespace = 'dash_html_components'
@@ -46,12 +47,16 @@ def __init__(self, children=None, **kwargs):
4647
self.available_properties = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
4748
self.available_wildcard_properties = ['data-', 'aria-']
4849

50+
_explicit_params = kwargs.pop('_explicit_params')
51+
_locals = locals()
52+
_locals.update(kwargs) # For wildcard attrs
53+
args = {k: _locals[k] for k in _explicit_params if k != 'children'}
54+
4955
for k in []:
50-
if k not in kwargs:
56+
if k not in args:
5157
raise TypeError(
5258
'Required argument `' + k + '` was not specified.')
53-
54-
super(Address, self).__init__(children=children, **kwargs)
59+
super(Address, self).__init__(children=children, **args)
5560

5661
def __repr__(self):
5762
if(any(getattr(self, c, None) is not None

dash_html_components/Area.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
from dash.development.base_component import Component
3+
from dash.development.base_component import Component, _explicitize_args
44

55

66
class Area(Component):
@@ -46,7 +46,8 @@ class Area(Component):
4646
- title (string; optional): Text to be displayed in a tooltip when hovering over the element.
4747
4848
Available events: 'click'"""
49-
def __init__(self, children=None, **kwargs):
49+
@_explicitize_args
50+
def __init__(self, children=None, id=None, n_clicks=None, n_clicks_timestamp=None, key=None, role=None, alt=None, coords=None, download=None, href=None, hrefLang=None, media=None, rel=None, shape=None, target=None, accessKey=None, className=None, contentEditable=None, contextMenu=None, dir=None, draggable=None, hidden=None, lang=None, spellCheck=None, style=None, tabIndex=None, title=None, fireEvent=None, dashEvents=None, **kwargs):
5051
self._prop_names = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'alt', 'coords', 'download', 'href', 'hrefLang', 'media', 'rel', 'shape', 'target', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
5152
self._type = 'Area'
5253
self._namespace = 'dash_html_components'
@@ -55,12 +56,16 @@ def __init__(self, children=None, **kwargs):
5556
self.available_properties = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'alt', 'coords', 'download', 'href', 'hrefLang', 'media', 'rel', 'shape', 'target', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
5657
self.available_wildcard_properties = ['data-', 'aria-']
5758

59+
_explicit_params = kwargs.pop('_explicit_params')
60+
_locals = locals()
61+
_locals.update(kwargs) # For wildcard attrs
62+
args = {k: _locals[k] for k in _explicit_params if k != 'children'}
63+
5864
for k in []:
59-
if k not in kwargs:
65+
if k not in args:
6066
raise TypeError(
6167
'Required argument `' + k + '` was not specified.')
62-
63-
super(Area, self).__init__(children=children, **kwargs)
68+
super(Area, self).__init__(children=children, **args)
6469

6570
def __repr__(self):
6671
if(any(getattr(self, c, None) is not None

dash_html_components/Article.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
from dash.development.base_component import Component
3+
from dash.development.base_component import Component, _explicitize_args
44

55

66
class Article(Component):
@@ -37,7 +37,8 @@ class Article(Component):
3737
- title (string; optional): Text to be displayed in a tooltip when hovering over the element.
3838
3939
Available events: 'click'"""
40-
def __init__(self, children=None, **kwargs):
40+
@_explicitize_args
41+
def __init__(self, children=None, id=None, n_clicks=None, n_clicks_timestamp=None, key=None, role=None, accessKey=None, className=None, contentEditable=None, contextMenu=None, dir=None, draggable=None, hidden=None, lang=None, spellCheck=None, style=None, tabIndex=None, title=None, fireEvent=None, dashEvents=None, **kwargs):
4142
self._prop_names = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
4243
self._type = 'Article'
4344
self._namespace = 'dash_html_components'
@@ -46,12 +47,16 @@ def __init__(self, children=None, **kwargs):
4647
self.available_properties = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
4748
self.available_wildcard_properties = ['data-', 'aria-']
4849

50+
_explicit_params = kwargs.pop('_explicit_params')
51+
_locals = locals()
52+
_locals.update(kwargs) # For wildcard attrs
53+
args = {k: _locals[k] for k in _explicit_params if k != 'children'}
54+
4955
for k in []:
50-
if k not in kwargs:
56+
if k not in args:
5157
raise TypeError(
5258
'Required argument `' + k + '` was not specified.')
53-
54-
super(Article, self).__init__(children=children, **kwargs)
59+
super(Article, self).__init__(children=children, **args)
5560

5661
def __repr__(self):
5762
if(any(getattr(self, c, None) is not None

dash_html_components/Aside.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
from dash.development.base_component import Component
3+
from dash.development.base_component import Component, _explicitize_args
44

55

66
class Aside(Component):
@@ -37,7 +37,8 @@ class Aside(Component):
3737
- title (string; optional): Text to be displayed in a tooltip when hovering over the element.
3838
3939
Available events: 'click'"""
40-
def __init__(self, children=None, **kwargs):
40+
@_explicitize_args
41+
def __init__(self, children=None, id=None, n_clicks=None, n_clicks_timestamp=None, key=None, role=None, accessKey=None, className=None, contentEditable=None, contextMenu=None, dir=None, draggable=None, hidden=None, lang=None, spellCheck=None, style=None, tabIndex=None, title=None, fireEvent=None, dashEvents=None, **kwargs):
4142
self._prop_names = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
4243
self._type = 'Aside'
4344
self._namespace = 'dash_html_components'
@@ -46,12 +47,16 @@ def __init__(self, children=None, **kwargs):
4647
self.available_properties = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
4748
self.available_wildcard_properties = ['data-', 'aria-']
4849

50+
_explicit_params = kwargs.pop('_explicit_params')
51+
_locals = locals()
52+
_locals.update(kwargs) # For wildcard attrs
53+
args = {k: _locals[k] for k in _explicit_params if k != 'children'}
54+
4955
for k in []:
50-
if k not in kwargs:
56+
if k not in args:
5157
raise TypeError(
5258
'Required argument `' + k + '` was not specified.')
53-
54-
super(Aside, self).__init__(children=children, **kwargs)
59+
super(Aside, self).__init__(children=children, **args)
5560

5661
def __repr__(self):
5762
if(any(getattr(self, c, None) is not None

dash_html_components/Audio.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
from dash.development.base_component import Component
3+
from dash.development.base_component import Component, _explicitize_args
44

55

66
class Audio(Component):
@@ -44,7 +44,8 @@ class Audio(Component):
4444
- title (string; optional): Text to be displayed in a tooltip when hovering over the element.
4545
4646
Available events: 'click'"""
47-
def __init__(self, children=None, **kwargs):
47+
@_explicitize_args
48+
def __init__(self, children=None, id=None, n_clicks=None, n_clicks_timestamp=None, key=None, role=None, autoPlay=None, controls=None, crossOrigin=None, loop=None, muted=None, preload=None, src=None, accessKey=None, className=None, contentEditable=None, contextMenu=None, dir=None, draggable=None, hidden=None, lang=None, spellCheck=None, style=None, tabIndex=None, title=None, fireEvent=None, dashEvents=None, **kwargs):
4849
self._prop_names = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'autoPlay', 'controls', 'crossOrigin', 'loop', 'muted', 'preload', 'src', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
4950
self._type = 'Audio'
5051
self._namespace = 'dash_html_components'
@@ -53,12 +54,16 @@ def __init__(self, children=None, **kwargs):
5354
self.available_properties = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'autoPlay', 'controls', 'crossOrigin', 'loop', 'muted', 'preload', 'src', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
5455
self.available_wildcard_properties = ['data-', 'aria-']
5556

57+
_explicit_params = kwargs.pop('_explicit_params')
58+
_locals = locals()
59+
_locals.update(kwargs) # For wildcard attrs
60+
args = {k: _locals[k] for k in _explicit_params if k != 'children'}
61+
5662
for k in []:
57-
if k not in kwargs:
63+
if k not in args:
5864
raise TypeError(
5965
'Required argument `' + k + '` was not specified.')
60-
61-
super(Audio, self).__init__(children=children, **kwargs)
66+
super(Audio, self).__init__(children=children, **args)
6267

6368
def __repr__(self):
6469
if(any(getattr(self, c, None) is not None

dash_html_components/B.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
from dash.development.base_component import Component
3+
from dash.development.base_component import Component, _explicitize_args
44

55

66
class B(Component):
@@ -37,7 +37,8 @@ class B(Component):
3737
- title (string; optional): Text to be displayed in a tooltip when hovering over the element.
3838
3939
Available events: 'click'"""
40-
def __init__(self, children=None, **kwargs):
40+
@_explicitize_args
41+
def __init__(self, children=None, id=None, n_clicks=None, n_clicks_timestamp=None, key=None, role=None, accessKey=None, className=None, contentEditable=None, contextMenu=None, dir=None, draggable=None, hidden=None, lang=None, spellCheck=None, style=None, tabIndex=None, title=None, fireEvent=None, dashEvents=None, **kwargs):
4142
self._prop_names = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
4243
self._type = 'B'
4344
self._namespace = 'dash_html_components'
@@ -46,12 +47,16 @@ def __init__(self, children=None, **kwargs):
4647
self.available_properties = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title']
4748
self.available_wildcard_properties = ['data-', 'aria-']
4849

50+
_explicit_params = kwargs.pop('_explicit_params')
51+
_locals = locals()
52+
_locals.update(kwargs) # For wildcard attrs
53+
args = {k: _locals[k] for k in _explicit_params if k != 'children'}
54+
4955
for k in []:
50-
if k not in kwargs:
56+
if k not in args:
5157
raise TypeError(
5258
'Required argument `' + k + '` was not specified.')
53-
54-
super(B, self).__init__(children=children, **kwargs)
59+
super(B, self).__init__(children=children, **args)
5560

5661
def __repr__(self):
5762
if(any(getattr(self, c, None) is not None

0 commit comments

Comments
 (0)