Skip to content

Commit ad003b8

Browse files
chore(internal): codegen related update (#215)
1 parent 80a1d9c commit ad003b8

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dev-dependencies = [
5454
"dirty-equals>=0.6.0",
5555
"importlib-metadata>=6.7.0",
5656
"rich>=13.7.1",
57-
"nest_asyncio==1.6.0"
57+
"nest_asyncio==1.6.0",
5858
]
5959

6060
[tool.rye.scripts]

requirements-dev.lock

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ h11==0.14.0
3636
# via httpcore
3737
httpcore==1.0.2
3838
# via httpx
39-
httpx==0.25.2
39+
httpx==0.28.1
4040
# via onebusaway
4141
# via respx
4242
idna==3.4
@@ -77,7 +77,7 @@ python-dateutil==2.8.2
7777
# via time-machine
7878
pytz==2023.3.post1
7979
# via dirty-equals
80-
respx==0.20.2
80+
respx==0.22.0
8181
rich==13.7.1
8282
ruff==0.6.9
8383
setuptools==68.2.2
@@ -86,7 +86,6 @@ six==1.16.0
8686
# via python-dateutil
8787
sniffio==1.3.0
8888
# via anyio
89-
# via httpx
9089
# via onebusaway
9190
time-machine==2.9.0
9291
tomli==2.0.2

requirements.lock

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ h11==0.14.0
2626
# via httpcore
2727
httpcore==1.0.2
2828
# via httpx
29-
httpx==0.25.2
29+
httpx==0.28.1
3030
# via onebusaway
3131
idna==3.4
3232
# via anyio
@@ -37,7 +37,6 @@ pydantic-core==2.27.1
3737
# via pydantic
3838
sniffio==1.3.0
3939
# via anyio
40-
# via httpx
4140
# via onebusaway
4241
typing-extensions==4.12.2
4342
# via anyio

src/onebusaway/_base_client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,9 @@ def __init__(self, **kwargs: Any) -> None:
767767

768768
class SyncHttpxClientWrapper(DefaultHttpxClient):
769769
def __del__(self) -> None:
770+
if self.is_closed:
771+
return
772+
770773
try:
771774
self.close()
772775
except Exception:
@@ -1334,6 +1337,9 @@ def __init__(self, **kwargs: Any) -> None:
13341337

13351338
class AsyncHttpxClientWrapper(DefaultAsyncHttpxClient):
13361339
def __del__(self) -> None:
1340+
if self.is_closed:
1341+
return
1342+
13371343
try:
13381344
# TODO(someday): support non asyncio runtimes here
13391345
asyncio.get_running_loop().create_task(self.aclose())

0 commit comments

Comments
 (0)