From 2f78f9bb9b9bd8a2f039d9f9c5300e5b91c14531 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 23 May 2022 15:58:24 -0400 Subject: Fix TypeParserResult type hint --- python/typeparser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'python') diff --git a/python/typeparser.py b/python/typeparser.py index ac5134f0..f1dffe13 100644 --- a/python/typeparser.py +++ b/python/typeparser.py @@ -22,7 +22,7 @@ import abc import ctypes import dataclasses from json import dumps -from typing import List, Tuple, Optional +from typing import List, Tuple, Optional, Dict import sys import traceback @@ -122,9 +122,9 @@ class ParsedType: @dataclasses.dataclass(frozen=True) class TypeParserResult: - types: List[ParsedType] - variables: List[ParsedType] - functions: List[ParsedType] + types: Dict['types.QualifiedName', ParsedType] + variables: Dict['types.QualifiedName', ParsedType] + functions: Dict['types.QualifiedName', ParsedType] def __repr__(self): return f"" -- cgit v1.3.1