]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Fix type annotation in `create_table_comment` 1115/head
authorColin Adams <adamscolinc@gmail.com>
Wed, 9 Nov 2022 17:26:18 +0000 (09:26 -0800)
committerGitHub <noreply@github.com>
Wed, 9 Nov 2022 17:26:18 +0000 (09:26 -0800)
The `existing_comment` parameter had type `None`, but it should be `Optional[str]`.

alembic/op.pyi

index 490d714614fcbd53f9f457f2987f22864779b8a1..d7e404b68e59c06e49e39852dc8750394f3e826a 100644 (file)
@@ -751,7 +751,7 @@ def create_table(
 def create_table_comment(
     table_name: str,
     comment: Optional[str],
-    existing_comment: None = None,
+    existing_comment: Optional[str] = None,
     schema: Optional[str] = None,
 ) -> Optional[Table]:
     """Emit a COMMENT ON operation to set the comment for a table.