Skip to content

Commit 45781d7

Browse files
committed
Fix number types.
1 parent 461cd3c commit 45781d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dash/development/_py_prop_typing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ def get_prop_typing(
183183
"exact": generate_shape,
184184
"string": generate_type("str"),
185185
"bool": generate_type("bool"),
186-
"number": generate_type("typing.Union[int, float, numbers.Number]"),
186+
"number": generate_type(
187+
"typing.Union[typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex]"
188+
),
187189
"node": generate_type(
188190
"typing.Union[str, int, float, ComponentType,"
189191
" typing.Sequence[typing.Union"

0 commit comments

Comments
 (0)