You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dash_test.py:11: error: Module has no attribute "DataTable" [attr-defined]
mypy cannot find the DataTable from __all__ for some reason, works fine in pyright.
dict(modeBarButtonsToRemove=["sendDataToCloud"])
The config is now a TypedDict which requires the {} syntax eg: {"modeBarButtonsToRemove" :["sendDataToCloud"]}. Plain dict(key="") appears to not be supported by typing systems.
dash_test.py:35: error: "init" of "Graph" gets multiple values for keyword argument "config" [misc]
This is a valid error, config should be before **kwargs and popped from kwargs.
**{"aria-pressed": "false"}
This syntax is not supported by untyped kwargs but should be valid, the only way I found to make it work is to add all the aria props like this:
But this would requires generating all the possible aria attributes and we also support data-* which can be anything. There is also the cases of components with more than ~256 arguments having **kwargs for the rest of the props so it's not really an option. I'd recommend adding # type: ignore for that case for now.
The following minimum example:
Generates no issues with mypy 1.15.0 and Dash 3.0.2. Then upgrading to Dash 3.0.4
The text was updated successfully, but these errors were encountered: