Skip to content

Add a py.typed file #1121

Open
Open
@dmtucker

Description

@dmtucker

Hey there 👋
I'm in the process of adding types to pytest-mypy, which integrates with xdist in part via the pytest_configure_node hook.
The type for the node parameter is available from xdist.workermanage, but mypy still emits the following error:

error: Skipping analyzing "xdist.workermanage": module is installed, but missing library stubs or py.typed marker  [import-untyped]
note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

I see lots of typing work was done to xdist in 3.6.0 (#1065).
Could we add a py.typed file to allow downstreams to take advantage of it too?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions