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

Question: What is difference between strongtyping and typeguard? #84

Closed eggplants closed 2 years ago

eggplants commented 2 years ago

Interesting project! But this project resembles agronholm/typeguard. Please tell what is difference and stronger point than typeguard.

I think this project has more modern dev environment and reports mismatched type as TypeMisMatch, unlike typeguard's TypeError. So in other points?

FelixTheC commented 2 years ago

What I can tell for the Moment is that I Support different levels (severity_level) of handling type missmatches. For example you can disable the typechecking without removing the decorator.

And I allready have a working solution for the PEP-563. Besides this I also created a separate project which uses Cython for a better performance especially for lists and dicts.

But typeguard has some other Features which I don't have like this pytest addon and more. And there are more people involved.

I hope this answers your question a little bit.

eggplants commented 2 years ago

Thank you for your helpful answer!