-
Notifications
You must be signed in to change notification settings - Fork 19
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
Annotate and make attrs-strict PEP 561 compatible #24
Comments
This looks like a good idea; if you'd like to implement it yourself @keiclone I can assign this to you. |
Sure thing, I can take this. |
Great, I assigned this to you. |
@keiclone any updates on this ? |
Sorry for the delay, I should be able to find some time after the holidays.
…On Fri, Dec 27, 2019, 5:37 PM Erik-Cristian S. ***@***.***> wrote:
@keiclone <https://github.com/keiclone> any updates on this ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#24?email_source=notifications&email_token=AASBK3PEPMK23MJNT6IEXOTQ2Z7SPA5CNFSM4JOXJCP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHX3NAY#issuecomment-569357955>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASBK3NX6Y3BKDBUZWY3EWLQ2Z7SPANCNFSM4JOXJCPQ>
.
|
working on this right now. looking at the README and One alternative would be to proceed in the same fashion as attrs and create a .pyi stub file for every module we have. There are some drawbacks with this approach:
On the other hand, breaking backwards compatibility means we would no longer be completely in sync with the version support of the original We could also do some middle ground solution like only annotating some functions to mitigate the drawbacks of keeping 2.7 compatibility. Since the current year is now 2020 and python 2.7 is officially deprecated, are we okay with dropping support for it now? Or do we wish to support it as long as |
CPython 2.7 might be no longer maintained, but PyPy 2.7 is still supported (that website is a bit lying as it really should be |
Personally, for a library like this, I'd vote against removing 2.7 support unless absolutely necessary or because the upstream package (attrs) removes it. |
I'd prefer to keep the 2.7 support longer, that being said I'd say this should be parked until we drop the 2.7 support ? |
Done! |
Is your feature request related to a problem? Please describe.
attrs-strict
is great because it adds runtime type validation to my attrs classes, but it'd be great if it could play nice with my static type checkers as well.Describe the solution you'd like
Annotate all the functions and add
py.typed
tosetup.py
per PEP 561Describe alternatives you've considered
A quick way to incorporate
attrs-strict
in my projects would be to add some stubs for it toMYPYPATH
. Might as well contribute the effort back.The text was updated successfully, but these errors were encountered: