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

@ -2,6 +2,7 @@
from __future__ import annotations
from asyncio import AbstractEventLoop
from collections.abc import Generator
import copy
import shutil
@ -37,6 +38,7 @@ from .common import (
)
from tests.common import MockConfigEntry
from tests.typing import ClientSessionGenerator
FAKE_TOKEN = "some-token"
FAKE_REFRESH_TOKEN = "some-refresh-token"
@ -86,7 +88,11 @@ class FakeAuth(AbstractAuth):
@pytest.fixture
def aiohttp_client(event_loop, aiohttp_client, socket_enabled):
def aiohttp_client(
event_loop: AbstractEventLoop,
aiohttp_client: ClientSessionGenerator,
socket_enabled: None,
) -> ClientSessionGenerator:
"""Return aiohttp_client and allow opening sockets."""
return aiohttp_client