Fix RelevantTo won't connect to any elements
Signed-off-by: Dan Yeaw <dan@yeaw.me>
This commit is contained in:
@ -2,3 +2,13 @@ from gaphor.RAAML.stpa.controlaction import ControlActionItem
|
||||
from gaphor.RAAML.stpa.operationalsituation import OperationalSituationItem
|
||||
from gaphor.RAAML.stpa.relationships import RelevantToItem
|
||||
from gaphor.RAAML.stpa.unsafecontrolaction import UnsafeControlActionItem
|
||||
|
||||
# This need to be imported after RelevantToItem
|
||||
import gaphor.RAAML.stpa.connectors
|
||||
|
||||
__all__ = [
|
||||
"ControlActionItem",
|
||||
"OperationalSituationItem",
|
||||
"RelevantToItem",
|
||||
"UnsafeControlActionItem",
|
||||
]
|
||||
|
@ -5,4 +5,5 @@ from gaphor.SysML.requirements.relationships import DirectedRelationshipProperty
|
||||
|
||||
@represents(raaml.RelevantTo)
|
||||
class RelevantToItem(DirectedRelationshipPropertyPathItem):
|
||||
|
||||
relation_type = "relevantTo"
|
||||
|
@ -126,7 +126,7 @@ use_parentheses = true
|
||||
line_length = 88
|
||||
known_third_party = ["cairo", "gaphas", "generic", "gi", "importlib_metadata", "pytest", "recommonmark", "tinycss2", "tomlkit", "typing_extensions"]
|
||||
skip = "flatpak,.venv,build,dist"
|
||||
skip_glob = "gaphor/diagram/general/__init__.py,gaphor/UML/__init__.py,gaphor/UML/*/__init__.py"
|
||||
skip_glob = "gaphor/diagram/general/__init__.py,gaphor/UML/__init__.py,gaphor/UML/*/__init__.py,gaphor/RAAML/stpa/__init__.py"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
|
Reference in New Issue
Block a user