diff --git a/src/robot_interface/models/inspection/inspection.py b/src/robot_interface/models/inspection/inspection.py index f36dabd5..49f6f3ea 100644 --- a/src/robot_interface/models/inspection/inspection.py +++ b/src/robot_interface/models/inspection/inspection.py @@ -49,42 +49,22 @@ class Inspection: metadata: InspectionMetadata data: Optional[bytes] = field(default=None, init=False) - @staticmethod - def get_metadata_type() -> Type[InspectionMetadata]: - return InspectionMetadata - @dataclass class Image(Inspection): metadata: ImageMetadata - @staticmethod - def get_metadata_type() -> Type[InspectionMetadata]: - return ImageMetadata - @dataclass class ThermalImage(Inspection): metadata: ThermalImageMetadata - @staticmethod - def get_metadata_type() -> Type[InspectionMetadata]: - return ThermalImageMetadata - @dataclass class Video(Inspection): metadata: VideoMetadata - @staticmethod - def get_metadata_type() -> Type[InspectionMetadata]: - return VideoMetadata - @dataclass class ThermalVideo(Inspection): metadata: ThermalVideoMetadata - - @staticmethod - def get_metadata_type() -> Type[InspectionMetadata]: - return ThermalVideoMetadata