Skip to content

chore: add py.typed to enable typechecking with mypy#55

Merged
adubovik merged 1 commit intodevelopmentfrom
chore/add-py-typed
Feb 19, 2026
Merged

chore: add py.typed to enable typechecking with mypy#55
adubovik merged 1 commit intodevelopmentfrom
chore/add-py-typed

Conversation

@adubovik
Copy link
Copy Markdown
Collaborator

@adubovik adubovik commented Feb 19, 2026

As per PEP-0561 py.typed file must be added to the package so that the type checkers trust the type hints inlined in the Python code.

Pyright works just fine without this file; however, mypy actually relies on it.

The current workaround to make mypy work is to add the following to pyproject.toml:

[[tool.mypy.overrides]]
module = ["aidial_client.*"]
follow_untyped_imports = true

@adubovik adubovik self-assigned this Feb 19, 2026
@adubovik adubovik requested a review from tg-epam February 19, 2026 10:45
@adubovik adubovik enabled auto-merge (squash) February 19, 2026 17:37
@adubovik adubovik merged commit 22d325d into development Feb 19, 2026
13 of 14 checks passed
@adubovik adubovik deleted the chore/add-py-typed branch March 12, 2026 15:07
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.

2 participants