Skip to content

Type hints & PEP 561 packaging #146

@tuukkamustonen

Description

@tuukkamustonen

Add type hints to all (public API) code make the distribution PEP 561 compliant. This allows mypy (and other tools?) to find the type hints and use them in linting.

In practice, add py.typed file to statsd package, and include it in the package:

setup(
    package_data={'statsd': ['py.typed']},
    zip_safe=False,  # not needed with wheels, AFAIK
)

PEP 561: https://www.python.org/dev/peps/pep-0561/

Metadata

Metadata

Assignees

No one assigned

    Labels

    help-wantedopen to a pull request to address this issue

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions