Skip to content

Add py.typed file so that typecheckers recognize this library as typed #194

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jedesroches
Copy link

This is necessary as type-checking tools like mypy, pyright and ty use
this file as described by PEP-0561 to recognize typed libraries. This
is useful for better DX where, when types are available, they may
enhance autocompletion and/or provide early warnings of invalid code.

I would also recommend adding, if possible, types to the non-generated
parts of the code (like the GhApi class for example).

Closes #178.

This is necessary as type-checking tools like mypy, pyright and ty use
this file as described by PEP-0561 to recognize typed libraries. This
is useful for better DX where, when types are available, they may
enhance autocompletion and/or provide early warnings of invalid code.

I would also recommend adding, if possible, types to the non-generated
parts of the code (like the GhApi class for example).

Closes AnswerDotAI#178.
@jedesroches jedesroches marked this pull request as ready for review July 21, 2025 13:42
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.

mypy linting support
1 participant