Skip to content

Commit 5dd0740

Browse files
authored
Use asyncio.timeout instead of async_timeout (#202)
1 parent d72ab88 commit 5dd0740

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- published
99

1010
env:
11-
DEFAULT_PYTHON: "3.10"
11+
DEFAULT_PYTHON: "3.11"
1212

1313
jobs:
1414
release:

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
python: ["3.10", "3.11"]
21+
python: ["3.11"]
2222
steps:
2323
- name: ⤵️ Check out code from GitHub
2424
uses: actions/[email protected]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ source = ["python_opensky"]
6262
# free to run mypy on Windows, Linux, or macOS and get consistent
6363
# results.
6464
platform = "linux"
65-
python_version = "3.10"
65+
python_version = "3.11"
6666

6767
# show error messages from unrelated files
6868
follow_imports = "normal"

src/python_opensky/opensky.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from importlib import metadata
1010
from typing import TYPE_CHECKING, Any, cast
1111

12-
import async_timeout
1312
from aiohttp import BasicAuth, ClientError, ClientResponseError, ClientSession
1413
from aiohttp.hdrs import METH_GET
1514
from yarl import URL
@@ -114,7 +113,7 @@ async def _request(
114113
self._close_session = True
115114

116115
try:
117-
async with async_timeout.timeout(self.request_timeout):
116+
async with asyncio.timeout(self.request_timeout):
118117
response = await self.session.request(
119118
METH_GET,
120119
url.with_query(data),

0 commit comments

Comments
 (0)