From 35d5622551f28cd193a074b08dbe09115aeacd9e Mon Sep 17 00:00:00 2001 From: sh-at-cs <112704226+sh-at-cs@users.noreply.github.com> Date: Mon, 23 Sep 2024 19:21:40 +0200 Subject: [PATCH] Add type annotations to CreateSchema & DropSchema (#11914) (cherry picked from commit 40ccf772d377ec5f0b07691d3505292ddbbd2435) --- lib/sqlalchemy/sql/ddl.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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.""" -- 2.47.3