Fix RelevantTo won't connect to any elements

Signed-off-by: Dan Yeaw <dan@yeaw.me>
This commit is contained in:
Dan Yeaw
2021-06-08 21:43:43 -04:00
parent 32b61c8cc4
commit 2dae887d2c
3 changed files with 12 additions and 1 deletions

View File

@ -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",
]

View File

@ -5,4 +5,5 @@ from gaphor.SysML.requirements.relationships import DirectedRelationshipProperty
@represents(raaml.RelevantTo)
class RelevantToItem(DirectedRelationshipPropertyPathItem):
relation_type = "relevantTo"

View File

@ -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"]