Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve prop typing generation #3220

Merged
merged 7 commits into from
Mar 14, 2025
Merged

Improve prop typing generation #3220

merged 7 commits into from
Mar 14, 2025

Conversation

T4rk1n
Copy link
Contributor

@T4rk1n T4rk1n commented Mar 14, 2025

Resolve #3216

Add:

  • ignore_props variable to dash_prop_typing.py, is a list[str] with the name of props to ignore typing generation for all components (set to any). Default to ["style"].
  • * key in custom_imports and custom_props to apply the prop typing function to all the component that matches.
  • Reduced generated proptypes.js footprint.

@T4rk1n T4rk1n changed the title Improve generation Improve prop typing generation Mar 14, 2025
@T4rk1n T4rk1n merged commit 52b698a into dash-3.0 Mar 14, 2025
3 checks passed
@T4rk1n T4rk1n deleted the improve-generation branch March 14, 2025 19:44
@ivan-mingolov-blue-technologies

The https://pypi.org/project/stringcase/ package, that is hard dependacy of Dash since this PR can no longer be installed using setuptools >=78, because of the following PR https://github.com/pypa/setuptools/pull/4870. As a result, Dash can no longer be installed with setuptools version >=78.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants