Cleaned up dependencies.

This commit is contained in:
Phil Bajsicki 2024-04-20 09:24:45 +02:00
parent ae86239f1a
commit 2616e09ec6
2 changed files with 0 additions and 6 deletions

View file

@ -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:

View file

@ -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: