FelixTheC / strongtyping

Decorator which checks whether the function is called with the correct type of parameters.
https://pypi.org/project/strongtyping/
107 stars 3 forks source link

Added option to custom the error message #89

Closed amitshahar closed 2 years ago

amitshahar commented 2 years ago

Added the relevant information to the rise of the TypeMisMatch exception to give option to users also to create there own error message.

FelixTheC commented 2 years ago

Can you please fix: https://github.com/FelixTheC/strongtyping/runs/7105450129?check_suite_focus=true

https://github.com/FelixTheC/strongtyping/runs/7105450174?check_suite_focus=true

If you want to support py 3.10 and above please run black for formatting and create a PR to py_3_10. Main requires Support for 3.7, 3.8 and 3.9

amitshahar commented 2 years ago

Fixed the test. Formatted the 2 classes with black. Do I need to open 2 PR? one for main and one for py_3_10? because I need it for 3.7

FelixTheC commented 2 years ago

If the effort is not that high I would please you to open two PR's because I like the idea from the custom Error message.

I have to separate branches because I removed a lot of code for 3.10