Skip to content

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.

4 participants