1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Adjust Generator type hints in tests (#121013)

This commit is contained in:
epenet
2024-07-02 14:12:02 +02:00
committed by GitHub
parent bd234db48f
commit faf43ed4c7
6 changed files with 10 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ def banned_function():
@contextlib.contextmanager
def patch_get_current_frame(stack: list[Mock]) -> Generator[None, None, None]:
def patch_get_current_frame(stack: list[Mock]) -> Generator[None]:
"""Patch get_current_frame."""
frames = extract_stack_to_frame(stack)
with (