Add missing return type in test __init__ methods (#123932)

* Add missing return type in test __init__ methods

* Adjust
This commit is contained in:
epenet
2024-08-14 16:48:52 +02:00
committed by GitHub
parent faacfe3f90
commit 5608301178
35 changed files with 64 additions and 47 deletions

View File

@ -1,6 +1,7 @@
"""Tests for the aws component config and setup."""
import json
from typing import Any
from unittest.mock import AsyncMock, MagicMock, call, patch as async_patch
from homeassistant.core import HomeAssistant
@ -10,7 +11,7 @@ from homeassistant.setup import async_setup_component
class MockAioSession:
"""Mock AioSession."""
def __init__(self, *args, **kwargs):
def __init__(self, *args: Any, **kwargs: Any) -> None:
"""Init a mock session."""
self.get_user = AsyncMock()
self.invoke = AsyncMock()