Skip to content

Commit

Permalink
include module in node title to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Nov 29, 2024
1 parent 959380d commit 8b3eb65
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bioimageio/spec/_internal/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
from .validation_context import ValidationContext, validation_context_var


def _node_title_generator(model: Type[Node]) -> str:
def _node_title_generator(node: Type[Node]) -> str:
return (
f"{model.implemented_type} {model.implemented_format_version}" # pyright: ignore[reportAttributeAccessIssue]
if hasattr(model, "implemented_type")
and hasattr(model, "implemented_format_version")
else model.__name__
f"{node.implemented_type} {node.implemented_format_version}" # pyright: ignore[reportAttributeAccessIssue]
if hasattr(node, "implemented_type")
and hasattr(node, "implemented_format_version")
else f"{node.__module__.replace('bioimageio.spec.', '')}.{node.__name__}"
)


Expand Down

0 comments on commit 8b3eb65

Please sign in to comment.