You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
435 B

3 years ago
3 years ago
  1. from typing import Any, Dict, List
  2. class Record:
  3. def __init__(self,
  4. id: int,
  5. data: str,
  6. label: List[Any],
  7. user: str,
  8. metadata: Dict[Any, Any]):
  9. self.id = id
  10. self.data = data
  11. self.label = label
  12. self.user = user
  13. self.metadata = metadata
  14. def __str__(self):
  15. return f'{self.data}\t{self.label}'