Skip to content

Conversation

@yashwantbezawada
Copy link

@yashwantbezawada yashwantbezawada commented Nov 3, 2025

Issue #234

Describe your changes

This PR adds a py.typed marker file to the together package, enabling mypy to recognize and use the type annotations in this library.

Currently, users see warnings when running mypy on projects that import together:

error: Skipping analyzing "together": module is installed, but missing library stubs or py.typed marker

What this changes:

  • Adds py.typed marker file to the src/together/ directory
  • Updates pyproject.toml to include the marker file in package distribution
  • Follows PEP 561 for distributing type information

Impact:

  • Eliminates mypy warnings for users of this library
  • Enables full type checking support for IDE autocomplete and static analysis tools
  • No runtime behavior changes - purely for development/tooling support

This resolves issue #234 and improves the developer experience for all users who rely on type hints.

Adds py.typed marker file to enable type checking with mypy.
This resolves the 'missing library stubs or py.typed marker' warning
that users encounter when running mypy on projects that import together.

Fixes togethercomputer#234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant