chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
from fastapi import FastAPI
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class User(BaseModel):
|
||||
name: str
|
||||
|
||||
|
||||
user = User(name="a")
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@app.get("/")
|
||||
def h(u: User) -> str:
|
||||
return "a"
|
||||
|
||||
|
||||
def closure():
|
||||
app = FastAPI()
|
||||
|
||||
@app.get("/")
|
||||
def h(u: User) -> str:
|
||||
return "a"
|
||||
|
||||
return app
|
||||
Reference in New Issue
Block a user