Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[typing] Improve typing for many functions & add py.typed to satisfy mypy #2724

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

tomaarsen
Copy link
Collaborator

Hello!

Pull Request overview

  • Improve typing for many functions
  • add py.typed to satisfy mypy

Details

The py.typed should be required for mypy and other projects to consider this project as "type hinted". Hopefully it'll work like this, without the inclusion in the MANIFEST.in. It does look to be included when I build a new package:

copying sentence_transformers\py.typed -> sentence_transformers-3.1.0.dev0\sentence_transformers
  • Tom Aarsen

@tomaarsen tomaarsen linked an issue Jun 6, 2024 that may be closed by this pull request
@tomaarsen tomaarsen merged commit b5e98e1 into UKPLab:master Jun 6, 2024
9 checks passed
@tomaarsen tomaarsen deleted the improve_typing branch June 6, 2024 14:44
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.

Missing py.typed marker
1 participant