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__)