Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def to_list(self) -> List[VesselMovement]:
"""Represent vessel movements as a list of `VesselMovementEntity`s."""
# noinspection PyTypeChecker
return create_list(super().to_list(), VesselMovement)
def to_list(self) -> List[Product]:
"""Represent products as a list."""
# noinspection PyTypeChecker
return create_list(super().to_list(), Product)
def to_list(self) -> List[CargoMovement]:
"""Represent cargo movements as a list of `CargoMovementEntity`s."""
# noinspection PyTypeChecker
return create_list(super().to_list(), CargoMovement)
def to_list(self) -> List[TimeSeriesItem]:
"""Represents time series as a list."""
# noinspection PyTypeChecker
return create_list(super().to_list(), TimeSeriesItem)
def to_list(self) -> List[Vessel]:
"""Represent vessels as a list."""
# noinspection PyTypeChecker
return create_list(super().to_list(), Vessel)
def to_list(self) -> List[Attribute]:
"""Represent attributes as a list."""
# noinspection PyTypeChecker
return create_list(super().to_list(), Attribute)
def to_list(self) -> List[Corporation]:
"""Represent vessels as a list."""
# noinspection PyTypeChecker
return create_list(super().to_list(), Corporation)