17
17
from comtypes .tools import codegenerator , tlbparser
18
18
19
19
if TYPE_CHECKING :
20
- from typing import Any , Tuple , List , Optional , Union as _UnionT
20
+ from typing import Any , Tuple , List , Optional , Dict , Union as _UnionT
21
21
22
22
23
23
logger = logging .getLogger (__name__ )
@@ -247,8 +247,8 @@ def _create_wrapper_module(tlib, pathname):
247
247
248
248
249
249
def _get_known_symbols ():
250
- # type: () -> dict [str, str]
251
- known_symbols = {} # type: dict [str, str]
250
+ # type: () -> Dict [str, str]
251
+ known_symbols = {} # type: Dict [str, str]
252
252
for mod_name in (
253
253
"comtypes.persist" ,
254
254
"comtypes.typeinfo" ,
@@ -259,7 +259,7 @@ def _get_known_symbols():
259
259
):
260
260
mod = importlib .import_module (mod_name )
261
261
if hasattr (mod , "__known_symbols__" ):
262
- names = mod .__known_symbols__ # type: list [str]
262
+ names = mod .__known_symbols__ # type: List [str]
263
263
else :
264
264
names = list (mod .__dict__ )
265
265
for name in names :
@@ -268,6 +268,7 @@ def _get_known_symbols():
268
268
269
269
################################################################
270
270
271
+
271
272
if __name__ == "__main__" :
272
273
# When started as script, generate typelib wrapper from .tlb file.
273
274
GetModule (sys .argv [1 ])
0 commit comments