From 0c349f44d0bb91a4e3a33832190db6d2e515dddf Mon Sep 17 00:00:00 2001 From: Kernc Date: Sat, 20 Mar 2021 06:34:30 +0100 Subject: [PATCH] REF: Convert remaining few type comments --- pdoc/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdoc/cli.py b/pdoc/cli.py index fedde73a..d0dd7b9a 100755 --- a/pdoc/cli.py +++ b/pdoc/cli.py @@ -408,8 +408,8 @@ def to_url_id(module): url_cache[url] = len(url_cache) return url_cache[url] - index = [] # type: List[Dict] - url_cache = {} # type: Dict[str, int] + index: List[Dict] = [] + url_cache: Dict[str, int] = {} for top_module in modules: recursive_add_to_index(top_module) urls = sorted(url_cache.keys(), key=url_cache.__getitem__)