File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 17
17
from templates .helper import param_traits , type_traits , value_traits
18
18
import ctypes
19
19
import itertools
20
- from typing import Optional
20
+ from typing import Dict , List , Optional
21
21
from version import Version
22
22
23
23
@@ -504,7 +504,7 @@ def __validate_union_tag(d):
504
504
"""
505
505
filters object by version
506
506
"""
507
- def _filter_version (d , max_ver : Version ) -> Optional [dict ]:
507
+ def _filter_version (d , max_ver : Version ) -> Optional [Dict ]:
508
508
ver = Version (d .get ('version' , default_version ))
509
509
if ver > max_ver :
510
510
return None
@@ -550,7 +550,7 @@ def __filter_desc(d) -> dict:
550
550
"""
551
551
creates docs per version
552
552
"""
553
- def _make_versions (d , max_ver : Version ) -> list [Version ]:
553
+ def _make_versions (d , max_ver : Version ) -> List [Version ]:
554
554
docs = []
555
555
type = d ['type' ]
556
556
if 'function' == type or 'struct' == type :
You can’t perform that action at this time.
0 commit comments