-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix: Improve type prefix and suffix extraction #13
fix: Improve type prefix and suffix extraction #13
Conversation
Refactored the logic in `get_prefix_and_suffix` function to improve type prefix and suffix extraction. Now using `rsplit` method to accurately extract the prefix and suffix from the input string. Closes akhundMurad#12
fix: Improve type prefix and suffix extraction
Hello @iron3oxide |
…tring in test_typeid.py
…-invalid-exception Update typeid checks for prefix invalid exception
feat: Add test for constructing type from string with multi underscore prefix
Done! My pleasure |
@khasizadaj I am replying here because it is easier to follow the conversation this way. I don't quite understand your suggested changes. To preface this: In my opinion, After that it is up to the |
Thanks for the clarification. I was thinking that it could be useful to throw exception before that as well, but now I understand your POV as well. We can disregard my comment. |
@iron3oxide @khasizadaj |
Yes, I think it's ready to be merged |
@iron3oxide @khasizadaj |
Yes, it can be closed! Thanks a lot, @iron3oxide. |
Refactored the logic in
get_prefix_and_suffix
function to improve type prefix and suffix extraction. Now usingrsplit
method to accurately extract the prefix and suffix from the input string.Closes #12