Skip to content

Commit ef6b054

Browse files
committed
Remove tuple from list typing
1 parent 648a1c6 commit ef6b054

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

dash/__init__.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,37 @@ def _jupyter_nbextension_paths():
5353
"require": "dash/main",
5454
}
5555
]
56+
57+
58+
__all__ = [
59+
"Input",
60+
"Output",
61+
"State",
62+
"ClientsideFunction",
63+
"MATCH",
64+
"ALLSMALLER",
65+
"ALL",
66+
"development",
67+
"exceptions",
68+
"dcc",
69+
"html",
70+
"dash_table",
71+
"__version__",
72+
"callback_context",
73+
"set_props",
74+
"callback",
75+
"get_app",
76+
"get_asset_url",
77+
"get_relative_path",
78+
"strip_relative_path",
79+
"CeleryManager",
80+
"DiskcacheManager",
81+
"register_page",
82+
"page_registry",
83+
"Dash",
84+
"no_update",
85+
"page_container",
86+
"Patch",
87+
"jupyter_dash",
88+
"ctx",
89+
]

dash/development/_py_prop_typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def generate_array_of(
8282
typed = get_prop_typing(
8383
type_info["value"]["name"], component_name, prop_name, type_info["value"]
8484
)
85-
return f"typing.Union[typing.Sequence[{typed}], typing.Tuple]"
85+
return f"typing.Sequence[{typed}]"
8686

8787

8888
def generate_object_of(type_info, component_name: str, prop_name: str):
@@ -146,7 +146,7 @@ def generate_plotly_figure(*_):
146146

147147

148148
PROP_TYPING = {
149-
"array": generate_type("typing.Union[typing.Sequence, typing.Tuple]"),
149+
"array": generate_type("typing.Sequence"),
150150
"arrayOf": generate_array_of,
151151
"object": generate_type("dict"),
152152
"shape": generate_shape,

0 commit comments

Comments
 (0)