Skip to content

Commit 6b0048f

Browse files
committed
fixes mypy
1 parent f9483cb commit 6b0048f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/models-library/src/models_library/projects_nodes.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ def _update_json_schema_extra(schema: JsonDict) -> None:
478478

479479

480480
class PartialNode(Node):
481-
key: ServiceKey | None = None
482-
version: ServiceVersion | None = None
483-
label: str | None = None
481+
# NOTE: `type: ignore[assignment]` is needed because mypy gets confused when overriding the types by adding the Union with None
482+
key: ServiceKey | None = None # type: ignore[assignment]
483+
version: ServiceVersion | None = None # type: ignore[assignment]
484+
label: str | None = None # type: ignore[assignment]

0 commit comments

Comments
 (0)