Skip to content

Commit

Permalink
Fix compatibility with Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
romis2012 committed Dec 20, 2024
1 parent 241837c commit 5b5d2fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiohttp_socks/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import socket
import ssl
from asyncio import BaseTransport, StreamWriter
from typing import Any, Iterable, NamedTuple, Optional
from typing import Any, Iterable, NamedTuple, Optional, List

from aiohttp import ClientConnectorError, TCPConnector
from aiohttp.abc import AbstractResolver, ResolveResult
Expand All @@ -17,7 +17,7 @@ async def resolve(
host: str,
port: int = 0,
family: socket.AddressFamily = socket.AF_INET, # pylint: disable=no-member
) -> list[ResolveResult]:
) -> List[ResolveResult]:
return [
{
'hostname': host,
Expand Down

0 comments on commit 5b5d2fe

Please sign in to comment.