Skip to content

Commit ee24f0d

Browse files
committed
Fixing a circular import issue
1 parent b2d174e commit ee24f0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cyclonedx/model/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
SchemaVersion1Dot5,
5151
SchemaVersion1Dot6,
5252
)
53-
from .tool import Tool
5453

5554
@serializable.serializable_enum
5655
class DataFlow(str, Enum):
@@ -1196,6 +1195,8 @@ def __hash__(self) -> int:
11961195
def __repr__(self) -> str:
11971196
return f'<Copyright text={self.text}>'
11981197

1198+
# Importing here to avoid a circular import
1199+
from .tool import Tool # pylint: disable=wrong-import-position
11991200
ThisTool = Tool(
12001201
vendor='CycloneDX',
12011202
name='cyclonedx-python-lib',

0 commit comments

Comments
 (0)