Skip to content

Commit 4c3d308

Browse files
generatedunixname28243149908649644meta-codesync[bot]
authored andcommitted
PYRE_FIXME in models.py
Reviewed By: emmettneyman Differential Revision: D117675934 fbshipit-source-id: 26aa46190f4a8ecb34d7f354030461a53f5f83fc
1 parent a3e3a1f commit 4c3d308

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

sapp/models.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from datetime import datetime
1414
from decimal import Decimal
1515
from itertools import islice
16-
from typing import Any, NamedTuple, TYPE_CHECKING
16+
from typing import Any, cast, NamedTuple, TYPE_CHECKING
1717

1818
from graphene_sqlalchemy.converter import (
1919
convert_column_to_int_or_id,
@@ -969,17 +969,20 @@ class Run(Base):
969969
server_default="0",
970970
)
971971

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,
981985
),
982-
index=False,
983986
)
984987

985988
# pyrefly: ignore [no-matching-overload]

0 commit comments

Comments
 (0)