data_structures.py 212 B

123456789101112131415161718
  1. from __future__ import annotations
  2. from typing import NamedTuple
  3. __all__ = [
  4. "Point",
  5. "Size",
  6. ]
  7. class Point(NamedTuple):
  8. x: int
  9. y: int
  10. class Size(NamedTuple):
  11. rows: int
  12. columns: int