26 lines
763 B
Python
26 lines
763 B
Python
def print_document_id_static(document_id: str) -> str:
|
|
print(f"STATIC Document ID: {document_id}")
|
|
return "STATIC PRINTED!"
|
|
|
|
|
|
class Backend:
|
|
|
|
def __init__(self, name: str, description: str):
|
|
self.name = name
|
|
self.description = description
|
|
|
|
def __repr__(self):
|
|
return f"Backend(name={self.name}, description={self.description})"
|
|
|
|
def __str__(self):
|
|
return f"{self.name}: {self.description}"
|
|
|
|
def __eq__(self, other):
|
|
if not isinstance(other, Backend):
|
|
return False
|
|
return self.name == other.name and self.description == other.description
|
|
|
|
def print_document_id(self, document_id: str) -> str:
|
|
print(f"CLASS Document ID: {document_id}")
|
|
return "CLASS PRINTED!"
|