Add more type hints to pylint plugin (#118319)

This commit is contained in:
epenet 2024-05-28 18:37:38 +02:00 committed by GitHub
parent 0b2aac8f4c
commit a59621bf9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 179 additions and 43 deletions

View file

@ -1,5 +1,7 @@
"""The tests for the image_processing component."""
from asyncio import AbstractEventLoop
from collections.abc import Callable
from unittest.mock import PropertyMock, patch
import pytest
@ -24,7 +26,11 @@ async def setup_homeassistant(hass: HomeAssistant):
@pytest.fixture
def aiohttp_unused_port_factory(event_loop, unused_tcp_port_factory, socket_enabled):
def aiohttp_unused_port_factory(
event_loop: AbstractEventLoop,
unused_tcp_port_factory: Callable[[], int],
socket_enabled: None,
) -> Callable[[], int]:
"""Return aiohttp_unused_port and allow opening sockets."""
return unused_tcp_port_factory