-
Notifications
You must be signed in to change notification settings - Fork 156
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
Typing #512
Comments
Hey @JeppeKlitgaard, I don't have anything against adding typing so go for it 👍. Same with dropping 3.5 support, been a while since wanted to do this plus adding support for 3.8 (and 3.9 now) but if you want to give it a try, please do :) |
Mypy has been configured on the repository, so if anyone wants to start contributing to this, please feel free to make a PR that adds some more annotations. To work on it, start by uncommenting
|
@Dreamsorcerer is there an option to split this issue?
Looks like 1 has no blocker and can be published fast Just added some strings for example and got expected behaviour: It looks much better than a fully typed library in the distant future. Look to the PR: |
No, exposing type hints at all causes type errors in everyone's code with v0. I tried enabling it before, but had to disable it again. The v1 milestone is listed in the order that tasks should be completed: Once mypy is running, we could potentially start taking typing contributions, though the other tasks listed before this one will ensure the easiest path to typing. |
Even single TypeVar? Just tried to run mypy with my example and it passed well P.S.: I looked at v1 - there is a fairly large amount of improvements. I definitely won't be able to switch on quickly. At the same time, I would like to make the current version at least a little more convenient |
Even without a single TypeVar. Just adding the py.typed file resulted in type errors for users, got complaints the moment I pushed a release with it in. |
That's only true if you add If you want to achieve this for
Alternatively, you could create a from aiocache.typed import cached PEP-0561https://peps.python.org/pep-0561/#packaging-type-information Example from
|
Since
aiocache
only supports modern Python 3 versions, I was wondering if there would be an interesting in having the library be typed?I wouldn't mind doing the work to get this done, but wanted to get feedback on whether this is something that the maintainers of
aiocache
would even want.On that same note, how do people feel about dropping Python 3.5 support now that the release has officially reached end-of-life.
The text was updated successfully, but these errors were encountered: