-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Remove stringcase #3239
Conversation
r"[\-_\.\s]([a-z])", lambda match: match.group(1).upper(), name[1:] | ||
) | ||
|
||
|
||
def generate_shape(type_info, component_name: str, prop_name: str): |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Fix #3238