Skip to content

Add py.typed marker #696

@LoHertel

Description

@LoHertel

When importing markdown2, I’m seeing the following linter warnings:

  • mypy: Skipping analyzing "markdown2": module is installed, but missing library stubs or py.typed marker.
  • Pyright: Stub file not found for "markdown2"

I noticed that typing support was introduced in PR #581 — thanks for that! I was wondering if there might be one additional step needed to make this fully recognized by type checkers.

From what I understand, adding a py.typed file to the package can help tools like mypy and Pyright detect that the package includes type information (as mentioned in #456 and #562). For reference, this might be helpful:
https://blog.whtsky.me/tech/2021/dont-forget-py.typed-for-your-typed-python-package/

If this sounds reasonable and you would like to have support, I’d be happy to help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions