Source code for ooodev.utils.data_type.point

from __future__ import annotations
from dataclasses import dataclass
from ooodev.utils.decorator import enforce


# Note that from __future__ import annotations converts annotations to string.
# this means that @enforce.enforce_types will see string as type. This is fine in
# most cases. Especially for built in types.
[docs]@enforce.enforce_types @dataclass(frozen=True) class Point: """Represents a X and Y values.""" x: int y: int