Skip to content

Request: adding py.typed for type checkers #2258

Open
@jamesbraza

Description

Currently with torchtune==0.5.0 and mypy=1.14.1 I get import-untyped:

error: Skipping analyzing "torchtune": module is installed, but missing library stubs or py.typed marker  [import-untyped]
    from torchtune import generation
    ^
error: Skipping analyzing "torchtune.data": module is installed, but missing library stubs or py.typed marker  [import-untyped]
    from torchtune.data import Message as TorchTuneMessage
    ^

It would be nice to add a py.typed to torchtune so type checkers like mypy can inspect torchtune.

Metadata

Assignees

Labels

better engineeringTasks which help improve eng productivity e.g. building tools, cleaning up code, writing docstriagedThis issue has been assigned an owner and appropriate label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions