From 888160cfcbd915870ac42a4f1eb03bb891c983c8 Mon Sep 17 00:00:00 2001 From: Dave Warnock Date: Fri, 22 Nov 2024 23:23:52 +0000 Subject: [PATCH] Minimal mypy update, adding dict type --- robyn/openapi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/robyn/openapi.py b/robyn/openapi.py index be5aeecb..3e8746e5 100644 --- a/robyn/openapi.py +++ b/robyn/openapi.py @@ -258,7 +258,7 @@ def get_path_obj( if not description: description = "No description provided" - openapi_path_object = { + openapi_path_object: dict = { "summary": name, "description": description, "parameters": [], @@ -371,11 +371,11 @@ def get_schema_object(self, parameter: str, param_type: Any) -> dict: @return: dict the properties object """ - properties = { + properties: dict = { "title": parameter.capitalize(), } - type_mapping = { + type_mapping: dict = { int: "integer", str: "string", bool: "boolean",