Skip to content

Commit

Permalink
Fix pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
dotX12 committed Feb 18, 2024
1 parent 43e5c2e commit 67600ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions shazamio/client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from types import SimpleNamespace
from typing import Any, Optional, List, Dict
from typing import Any, Optional, List, Dict, Union

from aiohttp import ClientSession, TraceRequestStartParams, TraceConfig
from aiohttp_retry import RetryClient, RetryOptionsBase
Expand Down Expand Up @@ -40,7 +40,7 @@ async def request(
url: str,
*args,
**kwargs,
) -> List[Any] | Dict[str, Any]:
) -> Union[List[Any], Dict[str, Any]]:
async with RetryClient(
retry_options=self.retry_options,
raise_for_status=False,
Expand Down
4 changes: 2 additions & 2 deletions shazamio/interfaces/client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from abc import ABC, abstractmethod
from typing import Any, List, Dict
from typing import Any, List, Dict, Union


class HTTPClientInterface(ABC):
Expand All @@ -10,5 +10,5 @@ async def request(
url: str,
*args,
**kwargs,
) -> List[Any] | Dict[str, Any]:
) -> Union[List[Any], Dict[str, Any]]:
raise NotImplementedError

0 comments on commit 67600ab

Please sign in to comment.