99"""
1010
1111import os
12- from typing import Union
12+ from typing import Dict , List , Union
1313from .activehdl import ActiveHDLInterface
1414from .ghdl import GHDLInterface
1515from .incisive import IncisiveInterface
@@ -38,7 +38,7 @@ def supported_simulators():
3838 NVCInterface ,
3939 ]
4040
41- def _extract_compile_options (self ) -> dict [str , Option ]:
41+ def _extract_compile_options (self ) -> Dict [str , Option ]:
4242 """
4343 Return all supported compile options
4444 """
@@ -52,7 +52,7 @@ def _extract_compile_options(self) -> dict[str, Option]:
5252 result [opt .name ] = opt
5353 return result
5454
55- def _extract_sim_options (self ) -> dict [str , Option ]:
55+ def _extract_sim_options (self ) -> Dict [str , Option ]:
5656 """
5757 Return all supported sim options
5858 """
@@ -76,7 +76,7 @@ def _extract_sim_options(self) -> dict[str, Option]:
7676
7777 return result
7878
79- def check_sim_option (self , name : str , value : Union [str , list [str ], bool ]):
79+ def check_sim_option (self , name : str , value : Union [str , List [str ], bool ]):
8080 """
8181 Check that sim_option has legal name and value
8282 """
@@ -95,7 +95,7 @@ def check_compile_option_name(self, name):
9595 if name not in known_options :
9696 raise ValueError (f"Unknown compile_option { name !r} , expected one of { known_options !r} " )
9797
98- def check_compile_option (self , name : str , value : Union [str , list [str ], bool ]) -> None :
98+ def check_compile_option (self , name : str , value : Union [str , List [str ], bool ]) -> None :
9999 """
100100 Check that the compile option is valid
101101 """
0 commit comments