Skip to content

[Bug]: packages are missing py.typed files #560

Closed

Description

@DetachHead

Bug Description

a py.typed file is required otherwise type checkers will treat the package as untyped. see https://typing.python.org/en/latest/spec/distributing.html#packaging-type-information

pyright for example complains on every import:

Steps to Reproduce

from microsoft_teams.cards import AdaptiveCard

Expected Behavior

no type error

Actual Behavior

pyright error:

Stub file not found for "microsoft_teams.cards" (reportMissingTypeStubs)

SDK Version

2.0.15

Python Version

3.14.6

Additional Context

No response

Activity

  1. added
    bug
    on Aug 13, 2026
  2. russlan23 commented on Aug 13, 2026

    @russlan23
    Contributor

    I can take this as a focused packaging fix: add py.typed to each published microsoft_teams distribution, include it in the built wheels, and add a regression check that inspects the artifacts so the marker cannot be omitted again. I would keep runtime behavior unchanged. If this scope matches the Teams SDK team’s expectation, I can implement it.

  3. MehakBindra commented on Aug 26, 2026

    @MehakBindra
    Member

    Russlan Ramdowar (@russlan23) That scope sounds right. Please add the marker to each published distribution and include an artifact-level regression test confirming every built wheel contains it. Runtime behavior should remain unchanged. Thanks!

  4. added a commit that references this issue on Aug 31, 2026
    4142b6e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions