# Another module's dataclass constructed with positional values, in its fields' order, as
# its own module's are: imported by name, or named through the module
import shapes
from shapes import Point, Segment


def main() -> None:
    p: Point = Point(1, 2)
    q: shapes.Point = shapes.Point(3, 4)
    s: Segment = Segment(p, shapes.Point(5, 6))
    print(p.x, p.y, q.x, q.y)
    print(s.start.x, s.end.y)


if __name__ == "__main__":
    main()
