From e9832bfbfbf21c844e465b3cd4bb58a7e74cbf6b Mon Sep 17 00:00:00 2001 From: John Chilton Date: Mon, 19 Dec 2022 17:38:28 -0500 Subject: [PATCH] Some typing for api/categories.py --- lib/tool_shed/webapp/api/categories.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tool_shed/webapp/api/categories.py b/lib/tool_shed/webapp/api/categories.py index 63448b7e69c..16d2df80deb 100644 --- a/lib/tool_shed/webapp/api/categories.py +++ b/lib/tool_shed/webapp/api/categories.py @@ -1,5 +1,6 @@ import logging from typing import ( + Any, Callable, Dict, ) @@ -84,6 +85,7 @@ class CategoriesController(BaseAPIController): sort_order = kwd.get("sort_order", "asc") page = kwd.get("page", None) category = suc.get_category(self.app, category_id) + category_dict: Dict[str, Any] if category is None: category_dict = dict(message=f"Unable to locate category record for id {str(id)}.", status="error") return category_dict