]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add type annotations to CreateSchema & DropSchema (#11914)
authorsh-at-cs <112704226+sh-at-cs@users.noreply.github.com>
Mon, 23 Sep 2024 17:21:40 +0000 (19:21 +0200)
committerGitHub <noreply@github.com>
Mon, 23 Sep 2024 17:21:40 +0000 (19:21 +0200)
lib/sqlalchemy/sql/ddl.py

index aacfa8264506a23b4122e57df2156fdb0833d892..ff7838e6dadf0e7a999f1ba26bb6f7bff13ac7df 100644 (file)
@@ -470,8 +470,8 @@ class CreateSchema(_CreateBase):
 
     def __init__(
         self,
-        name,
-        if_not_exists=False,
+        name: str,
+        if_not_exists: bool = False,
     ):
         """Create a new :class:`.CreateSchema` construct."""
 
@@ -491,9 +491,9 @@ class DropSchema(_DropBase):
 
     def __init__(
         self,
-        name,
-        cascade=False,
-        if_exists=False,
+        name: str,
+        cascade: bool = False,
+        if_exists: bool = False,
     ):
         """Create a new :class:`.DropSchema` construct."""