From fbe4bb77da1dab0ccb33a2c505dcce8f2306c68b Mon Sep 17 00:00:00 2001 From: Nikita Pastukhov Date: Wed, 24 Jul 2024 21:57:17 +0300 Subject: [PATCH] lint: fix mypy --- serve.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 serve.py diff --git a/serve.py b/serve.py new file mode 100644 index 0000000000..b2e39ddb5f --- /dev/null +++ b/serve.py @@ -0,0 +1,7 @@ +from fastapi import FastAPI + +from faststream.kafka.fastapi import KafkaRouter + +router = KafkaRouter(schema_url=None) +app = FastAPI(lifespan=router.lifespan_context) +app.include_router(router)