def __init__()

in cvm-attestation/AttestationClient.py [0:0]


  def __init__(self, report_type: str, hardware_report: bytes, runtime_data: bytes):
    if not isinstance(report_type, str):
      raise TypeError(f"Expected bytes for report_type, got {type(report_type).__name__}")
    if not isinstance(hardware_report, bytes):
      raise TypeError(f"Expected bytes for hardware_report, got {type(hardware_report).__name__}")
    if not isinstance(runtime_data, bytes):
      raise TypeError(f"Expected bytes for runtime_data, got {type(runtime_data).__name__}")

    self.type = report_type
    self.hardware_report = hardware_report
    self.runtime_data = runtime_data