Skip to content

Remove stringcase #3239

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

Merged
merged 5 commits into from
Mar 24, 2025
Merged

Remove stringcase #3239

merged 5 commits into from
Mar 24, 2025

Conversation

T4rk1n
Copy link
Contributor

@T4rk1n T4rk1n commented Mar 24, 2025

Fix #3238

r"[\-_\.\s]([a-z])", lambda match: match.group(1).upper(), name[1:]
)


def generate_shape(type_info, component_name: str, prop_name: str):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@T4rk1n Is this function covered by tests? Will anything break in a very deep way if this function returns a slightly different output following this change? (The regex looks solid but just in case)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would just be the name of the generated type, I don't think it would break. It's also almost the same as what stringcase was doing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emilykl I added a unit test for the pascal_case

@T4rk1n T4rk1n merged commit 2cdbb83 into dev Mar 24, 2025
3 checks passed
@T4rk1n T4rk1n deleted the fix/stringcase branch March 24, 2025 20:03
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.

The stringcase package can no longer be installed with setuptools version >=78.
5 participants