Refactor + strictly-type image component (#81808)

* image: refactor size validation to use partition

* image: give _generate_thumbnail types and use partition

* image: become strictly typed
This commit is contained in:
Aarni Koskela
2022-11-09 16:36:03 +02:00
committed by GitHub
parent ec316e94ed
commit 5a6f7e66cb
3 changed files with 65 additions and 18 deletions

View File

@@ -1263,6 +1263,16 @@ disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true
[mypy-homeassistant.components.image.*]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true
[mypy-homeassistant.components.image_processing.*]
check_untyped_defs = true
disallow_incomplete_defs = true