Tima
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
5 deletions
-
docs_src/app_testing/app_b_an_py310/main.py
|
|
|
@ -10,14 +10,11 @@ class Item(BaseModel): |
|
|
|
description: str | None = None |
|
|
|
|
|
|
|
|
|
|
|
foo_item = Item(id="foo", title="Foo", description="There goes my hero") |
|
|
|
bar_item = Item(id="bar", title="Bar", description="The bartenders") |
|
|
|
|
|
|
|
fake_secret_token = "coneofsilence" |
|
|
|
|
|
|
|
fake_db: dict[str, Item] = { |
|
|
|
"foo": foo_item, |
|
|
|
"bar": bar_item, |
|
|
|
"foo": Item(id="foo", title="Foo", description="There goes my hero"), |
|
|
|
"bar": Item(id="bar", title="Bar", description="The bartenders"), |
|
|
|
} |
|
|
|
|
|
|
|
app = FastAPI() |
|
|
|
|