Cleaned up dependencies.
This commit is contained in:
parent
ae86239f1a
commit
2616e09ec6
2 changed files with 0 additions and 6 deletions
|
@ -74,7 +74,6 @@ import sys
|
|||
import json
|
||||
import pprint
|
||||
from fastapi import FastAPI, Header
|
||||
from pydantic import BaseModel
|
||||
#+end_src
|
||||
|
||||
** Pretty Print
|
||||
|
@ -98,8 +97,6 @@ def usagequit():
|
|||
#+begin_src python
|
||||
app = FastAPI()
|
||||
|
||||
class APIget(BaseModel):
|
||||
result: dict
|
||||
@app.get("/")
|
||||
async def api_get(k: int = Header(default=None)):
|
||||
if not isinstance(k, int) and k is not None:
|
||||
|
|
|
@ -2,7 +2,6 @@ import sys
|
|||
import json
|
||||
import pprint
|
||||
from fastapi import FastAPI, Header
|
||||
from pydantic import BaseModel
|
||||
|
||||
pp = pp.Printer = pprint.PrettyPrinter(indent=2, compact=True)
|
||||
|
||||
|
@ -18,8 +17,6 @@ def usagequit():
|
|||
|
||||
app = FastAPI()
|
||||
|
||||
class APIget(BaseModel):
|
||||
result: dict
|
||||
@app.get("/")
|
||||
async def api_get(k: int = Header(default=None)):
|
||||
if not isinstance(k, int) and k is not None:
|
||||
|
|
Loading…
Reference in a new issue