From: sh-at-cs <112704226+sh-at-cs@users.noreply.github.com> Date: Mon, 23 Sep 2024 17:21:40 +0000 (+0200) Subject: Add type annotations to CreateSchema & DropSchema (#11914) X-Git-Tag: rel_2_0_36~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=35d5622551f28cd193a074b08dbe09115aeacd9e;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Add type annotations to CreateSchema & DropSchema (#11914) (cherry picked from commit 40ccf772d377ec5f0b07691d3505292ddbbd2435) --- diff --git a/lib/sqlalchemy/sql/ddl.py b/lib/sqlalchemy/sql/ddl.py index d9e3f673a2..ab717e2b37 100644 --- a/lib/sqlalchemy/sql/ddl.py +++ b/lib/sqlalchemy/sql/ddl.py @@ -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."""