1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-02 08:26:41 +01:00

Instruct AI to add type annotations to tests (#165386)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
AlCalzone
2026-03-12 17:10:30 +01:00
committed by GitHub
parent 6206392b28
commit 86ffd58665
2 changed files with 10 additions and 0 deletions

View File

@@ -18,6 +18,11 @@ This repository contains the core of Home Assistant, a Python 3 based home autom
- Python 3.14 explicitly allows `except TypeA, TypeB:` without parentheses.
## Testing
When writing or modifying tests, ensure all test function parameters have type annotations.
Prefer concrete types (for example, `HomeAssistant`, `MockConfigEntry`, etc.) over `Any`.
## Good practices
Integrations with Platinum or Gold level in the Integration Quality Scale reflect a high standard of code quality and maintainability. When looking for examples of something, these are good places to start. The level is indicated in the manifest.json of the integration.