Skip to content

Commit c94463a

Browse files
fix: Release anyio version (#312)
1 parent 50fb649 commit c94463a

File tree

4 files changed

+5
-15
lines changed

4 files changed

+5
-15
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ project_urls =
2424
packages = find:
2525
install_requires =
2626
aiorwlock==1.1.0
27-
anyio<4.0.0
27+
anyio>=3.7.1
2828
appdirs>=1.4.4
2929
appdirs-stubs>=0.1.0
3030
async-generator>=1.10

src/firebolt/async_db/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from types import TracebackType
77
from typing import Any, Dict, List, Optional
88

9-
from httpcore._backends.auto import AutoBackend
10-
from httpcore._backends.base import AsyncNetworkStream
9+
from httpcore._backends.auto import AutoBackend # type: ignore
10+
from httpcore._backends.base import AsyncNetworkStream # type: ignore
1111
from httpx import AsyncHTTPTransport, HTTPStatusError, RequestError, Timeout
1212

1313
from firebolt.async_db.cursor import Cursor

src/firebolt/client/client.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from typing import Any, Optional
22

3-
from anyio._core._eventloop import get_asynclib
43
from httpx import URL
54
from httpx import AsyncClient as HttpxAsyncClient
65
from httpx import Client as HttpxClient
@@ -20,15 +19,6 @@
2019
mixin_for,
2120
)
2221

23-
# Explicitly import all available backend not get into
24-
# anyio race condition during backend import
25-
for backend in ("asyncio", "trio"):
26-
try:
27-
get_asynclib(backend)
28-
except ModuleNotFoundError:
29-
# Not all backends might be installed
30-
pass
31-
3222
FireboltClientMixinBase = mixin_for(HttpxClient) # type: Any
3323

3424

src/firebolt/db/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from typing import Any, Dict, List, Optional
88
from warnings import warn
99

10-
from httpcore._backends.base import NetworkStream
11-
from httpcore._backends.sync import SyncBackend
10+
from httpcore._backends.base import NetworkStream # type: ignore
11+
from httpcore._backends.sync import SyncBackend # type: ignore
1212
from httpx import HTTPStatusError, HTTPTransport, RequestError, Timeout
1313
from readerwriterlock.rwlock import RWLockWrite
1414

0 commit comments

Comments
 (0)