@ -1,13 +1,14 @@
|
||||
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
from ..models.length_unit import LengthUnit
|
||||
|
||||
|
||||
class Point2d(BaseModel):
|
||||
"""A point in 2D space"""
|
||||
|
||||
x: float
|
||||
x: LengthUnit
|
||||
|
||||
y: float
|
||||
y: LengthUnit
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
Reference in New Issue
Block a user