Skip to content

Add stubs for type checkers (mypy, pytype, etc) #223

Open

Description

@ultrabear

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.

Activity

  1. jonathanunderwood commented on Nov 21, 2021

    @jonathanunderwood
    Member

    This would be a great addition. I agree. But, I won't have the bandwidth for the work myself. PRs welcome!

  2. jonathanunderwood commented on Dec 14, 2022

    @jonathanunderwood
    Member

    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.

  3. lorenzo-arena commented on Nov 13, 2024

    @lorenzo-arena

    Are there any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions