Skip to content

Commit 4a3cda6

Browse files
committed
Adjust for upcoming breaking change in httpx
1 parent 60d211f commit 4a3cda6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

code_submitter/auth.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ def __init__(
104104
url: str,
105105
verify: bool = True,
106106
) -> None:
107-
self.client = httpx.AsyncClient(base_url=url, app=app, verify=verify)
107+
self.client = httpx.AsyncClient(
108+
base_url=url,
109+
transport=httpx.ASGITransport(app=app) if app is not None else None,
110+
verify=verify,
111+
)
108112

109113
async def load_user(self, username: str, password: str) -> NemesisUserInfo:
110114
async with self.client as client:

requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ python-multipart
44
databases[sqlite]
55
sqlalchemy>=1.4,<2
66
alembic
7-
httpx
7+
httpx>=0.27
88
pyyaml
99
typing-extensions

0 commit comments

Comments
 (0)