Skip to content

Commit

Permalink
Make SerializedPipelineGraph compatible with pydantic v2.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Jul 24, 2023
1 parent 60f68d0 commit 7841684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lsst/pipe/base/pipeline_graph/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import networkx
import pydantic
from lsst.daf.butler import DatasetType, DimensionConfig, DimensionGraph, DimensionUniverse
from lsst.daf.butler._compat import _BaseModelCompat

from .. import automatic_connection_constants as acc
from ._dataset_types import DatasetTypeNode
Expand Down Expand Up @@ -78,7 +79,7 @@ def expect_not_none(value: _U | None, msg: str) -> _U:
return value


class SerializedEdge(pydantic.BaseModel):
class SerializedEdge(_BaseModelCompat):
"""Struct used to represent a serialized `Edge` in a `PipelineGraph`.
All `ReadEdge` and `WriteEdge` state not included here is instead
Expand Down

0 comments on commit 7841684

Please sign in to comment.