Skip to content

Commit e6ed7ee

Browse files
rroohhhwhitequark
authored andcommitted
*: remove unused imports
1 parent f4804c0 commit e6ed7ee

File tree

13 files changed

+3
-19
lines changed

13 files changed

+3
-19
lines changed

amaranth/_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import linecache
55
import operator
66
import re
7-
from collections import OrderedDict
87
from collections.abc import Iterable
98

109

amaranth/back/rtlil.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from collections.abc import Iterable
22
from contextlib import contextmanager
3-
import io
43

54
from ..utils import bits_for
65
from .._utils import to_binary

amaranth/build/plat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .. import __version__
1111
from .._toolchain import *
1212
from ..hdl import *
13-
from ..hdl._ir import IOBufferInstance, Design
13+
from ..hdl._ir import Design
1414
from ..hdl._xfrm import DomainLowerer
1515
from ..lib.cdc import ResetSynchronizer
1616
from ..lib import io

amaranth/build/run.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import sys
66
import subprocess
77
import tempfile
8-
import warnings
98
import zipfile
109
import hashlib
1110
import pathlib

amaranth/hdl/_dsl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import sys
77

88
from .._utils import flatten
9-
from ..utils import bits_for
109
from .. import tracer
1110
from ._ast import *
1211
from ._ast import _StatementList, _LateBoundStatement, _normalize_patterns

amaranth/hdl/_ir.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
from typing import Tuple
2-
from collections import defaultdict, OrderedDict
1+
from collections import OrderedDict
32
import enum
4-
import warnings
53

64
from .._utils import flatten, to_binary, final
75
from .. import tracer, _unused

amaranth/hdl/_xfrm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import warnings
21
from abc import ABCMeta, abstractmethod
32
from collections import OrderedDict
43
from collections.abc import Iterable

amaranth/lib/data.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from abc import ABCMeta, abstractmethod
2-
from enum import Enum
32
from collections.abc import Mapping, Sequence
43
import warnings
54
import operator

amaranth/lib/memory.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import operator
2-
from collections import OrderedDict
3-
from collections.abc import MutableSequence
4-
51
from ..hdl import MemoryData, MemoryInstance, Shape, ShapeCastable, Const, AlreadyElaborated
62
from ..utils import ceil_log2
73
from .._utils import final

amaranth/lib/wiring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import warnings
55

66
from .. import tracer
7-
from ..hdl._ast import Shape, ShapeCastable, Const, Signal, Value, ValueCastable
7+
from ..hdl._ast import Shape, ShapeCastable, Const, Signal, Value
88
from ..hdl._dsl import Module
99
from ..hdl._ir import Elaboratable
1010
from .._utils import final

amaranth/sim/pysim.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from contextlib import contextmanager
22
import itertools
33
import re
4-
import os.path
54
import enum as py_enum
65

76
from ..hdl import *

amaranth/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import operator
22

3-
from ._utils import deprecated
4-
53

64
__all__ = ["ceil_log2", "exact_log2", "bits_for"]
75

amaranth/vendor/_gowin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from abc import abstractproperty
22
from fractions import Fraction
3-
import math
43
import re
54

65
from ..hdl import *

0 commit comments

Comments
 (0)