From e21d07e55847f1e78e53f4f04bc2e458945f83fe Mon Sep 17 00:00:00 2001 From: DanCardin Date: Fri, 6 Dec 2024 15:26:17 -0500 Subject: [PATCH] fix: Add TextClause to alter_column's server_default fields. --- alembic/op.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alembic/op.pyi b/alembic/op.pyi index 92044469..de97e3f2 100644 --- a/alembic/op.pyi +++ b/alembic/op.pyi @@ -152,7 +152,7 @@ def alter_column( type_: Union[TypeEngine[Any], Type[TypeEngine[Any]], None] = None, existing_type: Union[TypeEngine[Any], Type[TypeEngine[Any]], None] = None, existing_server_default: Union[ - str, bool, Identity, Computed, None + str, bool, Identity, Computed, TextClause, None ] = False, existing_nullable: Optional[bool] = None, existing_comment: Optional[str] = None,