|
11 | 11 | from pathlib import Path |
12 | 12 | from fnmatch import fnmatch |
13 | 13 | from typing import Any, List, Literal, Optional, Union |
14 | | -from vunit.sim_if import OptionType |
| 14 | +from typing import TYPE_CHECKING |
15 | 15 |
|
16 | | -from vunit.test.bench_list import TestBenchList |
17 | | -from vunit.ui.preprocessor import Preprocessor |
| 16 | +from ..sim_if import OptionType |
| 17 | +from ..test.bench_list import TestBenchList |
| 18 | +from .preprocessor import Preprocessor |
18 | 19 | from ..vhdl_standard import VHDL, VHDLStandard |
19 | 20 | from ..project import Project |
20 | 21 | from ..source_file import file_type_of, FILE_TYPES, VERILOG_FILE_TYPES |
|
24 | 25 | from .testbench import TestBench |
25 | 26 | from .packagefacade import PackageFacade |
26 | 27 |
|
27 | | -from typing import TYPE_CHECKING |
28 | | - |
29 | 28 | if TYPE_CHECKING: |
30 | 29 | from vunit.ui import VUnit |
31 | 30 |
|
@@ -196,7 +195,7 @@ def add_source_files( # pylint: disable=too-many-arguments |
196 | 195 |
|
197 | 196 | """ |
198 | 197 | return SourceFileList( |
199 | | - source_files=[ |
| 198 | + [ |
200 | 199 | self.add_source_file( |
201 | 200 | file_name, |
202 | 201 | preprocessors, |
@@ -362,9 +361,6 @@ class LibraryList(List[Library]): |
362 | 361 | A list of :class:`.Library` |
363 | 362 | """ |
364 | 363 |
|
365 | | - def __init__(self, libraries: "list[Library]"): |
366 | | - list.__init__(self, libraries) |
367 | | - |
368 | 364 | def get_test_benches(self, pattern: str = "*", allow_empty: bool = False) -> list[TestBench]: |
369 | 365 | """ |
370 | 366 | Get a list of test benches |
|
0 commit comments