Skip to content

Commit 0719fdc

Browse files
author
Allen M. Foster
committed
remove annotate
1 parent a1cbca8 commit 0719fdc

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

mapcat/database/pointing_residual.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Table containing pointing residuals.
33
"""
44

5-
from typing import Annotated, Union
5+
from typing import Union
66

77
from sqlmodel import Field, Relationship, SQLModel
88

@@ -14,9 +14,7 @@
1414
from .depth_one_map import DepthOneMapTable
1515
from .json import JSONEncodedPydantic
1616

17-
PointingModel = Annotated[Union[ConstantPointingModel, PolynomialPointingModel],
18-
Field(discriminator="model_type")
19-
]
17+
PointingModel = Union[ConstantPointingModel, PolynomialPointingModel]
2018

2119
class PointingResidualTable(SQLModel, table=True):
2220
"""

0 commit comments

Comments
 (0)