1- from typing import List , Self , Union
1+ from typing import List , Union
22from pydantic import Field
33
44from pyenzyme .versions import v2
@@ -58,7 +58,9 @@ class MeasurementRow(BaseRow):
5858 replicate_id : str | None = Field (alias = "replicateId" , default = None )
5959
6060 @classmethod
61- def from_measurements (cls , measurements : list [v2 .Measurement ]) -> List [Self ]:
61+ def from_measurements (
62+ cls , measurements : list [v2 .Measurement ]
63+ ) -> List ["MeasurementRow" ]:
6264 """
6365 Convert a list of EnzymeML Measurement objects to a list of PEtab MeasurementRow objects.
6466 """
@@ -69,7 +71,7 @@ def from_measurements(cls, measurements: list[v2.Measurement]) -> List[Self]:
6971 ]
7072
7173 @classmethod
72- def from_measurement (cls , measurement : v2 .Measurement ) -> List [Self ]:
74+ def from_measurement (cls , measurement : v2 .Measurement ) -> List ["MeasurementRow" ]:
7375 """
7476 Convert an EnzymeML Measurement object to a list of PEtab MeasurementRow objects.
7577
@@ -81,7 +83,7 @@ def from_measurement(cls, measurement: v2.Measurement) -> List[Self]:
8183 species concentration time series data.
8284
8385 Returns:
84- List[Self ]: A list of MeasurementRow objects, each representing a single
86+ List["MeasurementRow" ]: A list of MeasurementRow objects, each representing a single
8587 data point from the original measurement. Each row contains the species ID,
8688 measurement condition ID, the measured value, and the time point.
8789
0 commit comments