Skip to content

Commit

Permalink
Fix import and update async timeout (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
klaasnicolaas authored Nov 27, 2023
1 parent 37dd87c commit 9a1debb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/brussel/brussel.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@
import socket
from dataclasses import dataclass
from importlib import metadata
from typing import TYPE_CHECKING, Any, cast
from typing import Any, Self, cast

import async_timeout
from aiohttp import ClientError, ClientSession
from aiohttp.hdrs import METH_GET
from yarl import URL

from .exceptions import ODPBrusselConnectionError, ODPBrusselError
from .models import DisabledParking, Garage

if TYPE_CHECKING:
from typing_extensions import Self


@dataclass
class ODPBrussel:
Expand Down Expand Up @@ -71,7 +67,7 @@ async def _request(
self._close_session = True

try:
async with async_timeout.timeout(self.request_timeout):
async with asyncio.timeout(self.request_timeout):
response = await self.session.request(
method,
url,
Expand Down

0 comments on commit 9a1debb

Please sign in to comment.