fix(classification): narrow copied selection type

This commit is contained in:
jxxghp
2026-09-17 16:10:27 +08:00
parent 542f893123
commit 1cea3bebf4

View File

@@ -569,7 +569,7 @@ def _degraded_automatic_selection(
return None
if not str(selection.category_id or "").strip():
return None
return selection.model_copy(deep=True)
return cast(ClassificationSelection, selection.model_copy(deep=True))
def _enum_text(value: object) -> str: