From 2616e09ec63e8316d034842c723f6366cc19e2fb Mon Sep 17 00:00:00 2001 From: Phil Bajsicki Date: Sat, 20 Apr 2024 09:24:45 +0200 Subject: [PATCH] Cleaned up dependencies. --- README.org | 3 --- pydiceprob.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/README.org b/README.org index 14da294..02219f0 100644 --- a/README.org +++ b/README.org @@ -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: diff --git a/pydiceprob.py b/pydiceprob.py index 5cc9d41..95e7f97 100644 --- a/pydiceprob.py +++ b/pydiceprob.py @@ -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: