From 1cf44f72c0b23c3aecf027cf542c5e8aaae5721a Mon Sep 17 00:00:00 2001 From: Marek Materzok Date: Wed, 27 Nov 2024 15:20:47 +0100 Subject: [PATCH] Narrower imports --- test/lib/test_connectors.py | 4 +++- test/lib/test_reqres.py | 3 ++- test/lib/test_simultaneous.py | 3 ++- test/lib/test_transformers.py | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/test/lib/test_connectors.py b/test/lib/test_connectors.py index 6bdaf8d..d57cd0d 100644 --- a/test/lib/test_connectors.py +++ b/test/lib/test_connectors.py @@ -7,7 +7,9 @@ from amaranth import * from transactron import * -from transactron.lib import * +from transactron.utils._typing import MethodLayout +from transactron.lib.adapters import Adapter +from transactron.lib.connectors import * from transactron.testing.testbenchio import CallTrigger from transactron.testing import ( SimpleTestCircuit, diff --git a/test/lib/test_reqres.py b/test/lib/test_reqres.py index 5a2c261..6aea07f 100644 --- a/test/lib/test_reqres.py +++ b/test/lib/test_reqres.py @@ -3,7 +3,8 @@ from amaranth import * from transactron import * -from transactron.lib import * +from transactron.lib.adapters import Adapter +from transactron.lib.reqres import * from transactron.testing.method_mock import MethodMock from transactron.utils import ModuleConnector from transactron.testing import ( diff --git a/test/lib/test_simultaneous.py b/test/lib/test_simultaneous.py index 620ca6b..0418e23 100644 --- a/test/lib/test_simultaneous.py +++ b/test/lib/test_simultaneous.py @@ -4,7 +4,8 @@ from amaranth import * from transactron import * -from transactron.lib import * +from transactron.lib.adapters import Adapter +from transactron.lib.simultaneous import * from transactron.testing.method_mock import MethodMock from transactron.utils import ModuleConnector from transactron.testing import ( diff --git a/test/lib/test_transformers.py b/test/lib/test_transformers.py index 76a408f..d3427b8 100644 --- a/test/lib/test_transformers.py +++ b/test/lib/test_transformers.py @@ -3,7 +3,8 @@ from amaranth import * from transactron import * -from transactron.lib import * +from transactron.lib.adapters import Adapter, AdapterTrans +from transactron.lib.transformers import * from transactron.utils._typing import ModuleLike, MethodStruct, RecordDict from transactron.utils import ModuleConnector from transactron.testing import (