Skip to content

Create py.typed#11

Open
mik-laj wants to merge 2 commits intoOHF-Voice:mainfrom
mik-laj:mik-laj-patch-1
Open

Create py.typed#11
mik-laj wants to merge 2 commits intoOHF-Voice:mainfrom
mik-laj:mik-laj-patch-1

Conversation

@mik-laj
Copy link

@mik-laj mik-laj commented Feb 18, 2026

Hello,

A py.typed file is a marker file required by PEP 561, placed in a Python package's root directory to indicate to type checkers (like mypy or pyright) that the package contains type hints. It is needed to enforce strict typing for homeassistant.components.conversation.

Best regards,
Kamil

mik-laj and others added 2 commits February 18, 2026 21:45
* Initial plan

* Add py.typed to package-data in pyproject.toml

Co-authored-by: mik-laj <12058428+mik-laj@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mik-laj <12058428+mik-laj@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 18, 2026 20:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds PEP 561 compliance to the home_assistant_intents package by introducing a py.typed marker file. This allows type checkers like mypy and pyright to recognize and validate the type hints in this package when it's used as a dependency by other projects, such as Home Assistant's conversation component.

Changes:

  • Added empty py.typed marker file to the home_assistant_intents package root
  • Updated pyproject.toml to include py.typed in the package-data configuration for distribution

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
home_assistant_intents/py.typed Empty PEP 561 marker file indicating the package contains type hints
pyproject.toml Added py.typed to the package-data list to ensure it's included in distributions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants