You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add stubs for type checkers (mypy, pytype, etc) #223
This is a request for adding stubs for python lz4, or alternatively adding a lz4-stubs pypi package, seeing as this codebase supports python versions from before type hinting became possible.
Reacted by Antoine Facchini, Christian Clauss, Pearsteam and JustABoredMaker
Working with type hints a lot this year has really hammered home the value in doing this, so I'll look to get at it soon. One of the things that it shines a light on though is that we have a fairly ugly API at present in that many functions and methods can return either a bytes or a bytearray object, depending on an argument. That is very unfriendly from a type hinting perspective. So, I'd like to do a major version bump, clean up the API, and add type hints in one go.
Activity
jonathanunderwood commentedon Nov 21, 2021
This would be a great addition. I agree. But, I won't have the bandwidth for the work myself. PRs welcome!
jonathanunderwood commentedon Dec 14, 2022
Working with type hints a lot this year has really hammered home the value in doing this, so I'll look to get at it soon. One of the things that it shines a light on though is that we have a fairly ugly API at present in that many functions and methods can return either a bytes or a bytearray object, depending on an argument. That is very unfriendly from a type hinting perspective. So, I'd like to do a major version bump, clean up the API, and add type hints in one go.
lorenzo-arena commentedon Nov 13, 2024
Are there any updates on this?
feat: added stubs for type checkers python-lz4#223
feat: added stubs for type checkers python-lz4#223
feat: added stubs for type checkers python-lz4#223
feat: added stubs for type checkers python-lz4#223