Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit 942228a

Browse files
committed
refactor(deps): migrate fastapi from 0.111.0 to 0.135.1
1 parent 081f2b5 commit 942228a

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ aiohappyeyeballs==2.3.4
22
aiohttp==3.10.0
33
aiosignal==1.3.1
44
annotated-types==0.7.0
5-
anyio==4.4.0
5+
anyio==4.9.0
66
asgiref==3.8.1
77
asttokens==2.4.1
88
async-timeout==4.0.3
@@ -39,8 +39,8 @@ eth-utils==4.1.1
3939
eth_abi==5.1.0
4040
exceptiongroup==1.2.2
4141
executing==2.0.1
42-
fastapi==0.111.0
43-
fastapi-cli==0.0.4
42+
fastapi==0.135.1
43+
fastapi-cli==0.0.7
4444
filelock==3.15.4
4545
flatbuffers==24.3.25
4646
frozenlist==1.4.1
@@ -52,7 +52,7 @@ h11==0.14.0
5252
hexbytes==1.2.1
5353
httpcore==1.0.5
5454
httptools==0.6.1
55-
httpx==0.27.0
55+
httpx==0.28.1
5656
huggingface-hub==0.24.5
5757
humanfriendly==10.0
5858
identify==2.6.0
@@ -126,7 +126,7 @@ pysha3==1.0.2
126126
pytest==8.3.2
127127
python-dateutil==2.9.0.post0
128128
python-dotenv==1.0.1
129-
python-multipart==0.0.9
129+
python-multipart==0.0.20
130130
pyunormalize==15.1.0
131131
PyYAML==6.0.1
132132
referencing==0.35.1
@@ -142,7 +142,7 @@ shellingham==1.5.4
142142
six==1.16.0
143143
sniffio==1.3.1
144144
SQLAlchemy==2.0.31
145-
starlette==0.37.2
145+
starlette==0.46.2
146146
sympy==1.13.1
147147
tavily-python==0.3.5
148148
tenacity==8.5.0

scripts/python/server.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from typing import Union
21
from fastapi import FastAPI
32

43
app = FastAPI()
@@ -10,17 +9,17 @@ def read_root():
109

1110

1211
@app.get("/items/{item_id}")
13-
def read_item(item_id: int, q: Union[str, None] = None):
12+
def read_item(item_id: int, q: str | None = None):
1413
return {"item_id": item_id, "q": q}
1514

1615

1716
@app.get("/trades/{trade_id}")
18-
def read_trade(trade_id: int, q: Union[str, None] = None):
17+
def read_trade(trade_id: int, q: str | None = None):
1918
return {"trade_id": trade_id, "q": q}
2019

2120

2221
@app.get("/markets/{market_id}")
23-
def read_market(market_id: int, q: Union[str, None] = None):
22+
def read_market(market_id: int, q: str | None = None):
2423
return {"market_id": market_id, "q": q}
2524

2625

0 commit comments

Comments
 (0)