Skip to content

[REQ][python-nextgen] Include py.typed file in generated client #15097

@robertschweizer

Description

@robertschweizer

Is your feature request related to a problem? Please describe.

mypy does not import the generated Python client while type checking. According to PEP 561, a py.typed file needs to be shipped with the package to show mypy that a package has valid type annotations.

Describe the solution you'd like

Add py.typed to the generated package root and add it to the package_data in setup.py.

Describe alternatives you've considered

Additional context

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