This repository was archived by the owner on May 11, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ aiohappyeyeballs==2.3.4
22aiohttp == 3.10.0
33aiosignal == 1.3.1
44annotated-types == 0.7.0
5- anyio == 4.4 .0
5+ anyio == 4.9 .0
66asgiref == 3.8.1
77asttokens == 2.4.1
88async-timeout == 4.0.3
@@ -39,8 +39,8 @@ eth-utils==4.1.1
3939eth_abi == 5.1.0
4040exceptiongroup == 1.2.2
4141executing == 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
4444filelock == 3.15.4
4545flatbuffers == 24.3.25
4646frozenlist == 1.4.1
@@ -52,7 +52,7 @@ h11==0.14.0
5252hexbytes == 1.2.1
5353httpcore == 1.0.5
5454httptools == 0.6.1
55- httpx == 0.27.0
55+ httpx == 0.28.1
5656huggingface-hub == 0.24.5
5757humanfriendly == 10.0
5858identify == 2.6.0
@@ -126,7 +126,7 @@ pysha3==1.0.2
126126pytest == 8.3.2
127127python-dateutil == 2.9.0.post0
128128python-dotenv == 1.0.1
129- python-multipart == 0.0.9
129+ python-multipart == 0.0.20
130130pyunormalize == 15.1.0
131131PyYAML == 6.0.1
132132referencing == 0.35.1
@@ -142,7 +142,7 @@ shellingham==1.5.4
142142six == 1.16.0
143143sniffio == 1.3.1
144144SQLAlchemy == 2.0.31
145- starlette == 0.37 .2
145+ starlette == 0.46 .2
146146sympy == 1.13.1
147147tavily-python == 0.3.5
148148tenacity == 8.5.0
Original file line number Diff line number Diff line change 1- from typing import Union
21from fastapi import FastAPI
32
43app = 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
You can’t perform that action at this time.
0 commit comments