|
13 | 13 | from datetime import datetime |
14 | 14 | from decimal import Decimal |
15 | 15 | from itertools import islice |
16 | | -from typing import Any, NamedTuple, TYPE_CHECKING |
| 16 | +from typing import Any, cast, NamedTuple, TYPE_CHECKING |
17 | 17 |
|
18 | 18 | from graphene_sqlalchemy.converter import ( |
19 | 19 | convert_column_to_int_or_id, |
@@ -969,17 +969,20 @@ class Run(Base): |
969 | 969 | server_default="0", |
970 | 970 | ) |
971 | 971 |
|
972 | | - # pyre-fixme[8]: Attribute has type `Column[str]`; used as `Column[PurgeStatus]`. |
973 | | - purge_status: Column[PurgeStatus] = Column( |
974 | | - Enum(PurgeStatus), |
975 | | - server_default="unpurged", |
976 | | - nullable=False, |
977 | | - doc=( |
978 | | - "Tracks whether Internal deletion jobs have purged " |
979 | | - "unnecessary issue instances and trace frames from this run. " |
980 | | - "Should NOT be set to anything but the default in SAPP code." |
| 972 | + purge_status: Column[PurgeStatus] = cast( |
| 973 | + Column[PurgeStatus], |
| 974 | + # pyrefly: ignore [no-matching-overload] |
| 975 | + Column( |
| 976 | + Enum(PurgeStatus), |
| 977 | + server_default="unpurged", |
| 978 | + nullable=False, |
| 979 | + doc=( |
| 980 | + "Tracks whether Internal deletion jobs have purged " |
| 981 | + "unnecessary issue instances and trace frames from this run. " |
| 982 | + "Should NOT be set to anything but the default in SAPP code." |
| 983 | + ), |
| 984 | + index=False, |
981 | 985 | ), |
982 | | - index=False, |
983 | 986 | ) |
984 | 987 |
|
985 | 988 | # pyrefly: ignore [no-matching-overload] |
|
0 commit comments