]> 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)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 23 Sep 2024 17:22:42 +0000 (19:22 +0200)
(cherry picked from commit 40ccf772d377ec5f0b07691d3505292ddbbd2435)

lib/sqlalchemy/sql/ddl.py

index d9e3f673a210aa5a6e65f5dfdd02df5e12943da0..ab717e2b37e27c651745f8880e89f0f3204ec1c3 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."""