FelixTheC / strongtyping

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

Is strongtypes safe to depend on? #113

Closed JakobDev closed 1 year ago

JakobDev commented 1 year ago

I'm planning to use strongtypes in a upcoming project, which is a library. The PyPi page of strongtypes shows this:

This is the release for Python-3.10 only

If you need a different version please checkout the release Tags 2.*.*

This rises the question: How safe is it, to depend on strongtypes? My lib will require Python 3.10, but for the future, it will be bad if my lib depends on this and a new Version, which only works with 3.11 will be uploaded. Telling Users of my lib to install from GitHub if they want older versions, is not a good practice.

FelixTheC commented 1 year ago

I hope that in future the changes to how type annotations works will be less. So that I can have only one version in the future.

At the Moment I have a release canidate for each version to reduce to many if else checks and to gain a cleaner code.

So you don't have to worry if you use poetry or so it will find the best version for you. And I will never drop an old version.

There are also serveral projects which are using Python3.9 and the corresponding strongtyping version

FelixTheC commented 1 year ago

@JakobDev could I answer your question?? If you need any more help I'm here.