Skip to content

Commit b0c2eff

Browse files
committed
chore: add Delete to execute typing
1 parent f79e0d3 commit b0c2eff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/sql.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676

7777
from sqlalchemy import Table
7878
from sqlalchemy.sql.expression import (
79+
Delete,
7980
Select,
8081
TextClause,
8182
)
@@ -1658,7 +1659,7 @@ def run_transaction(self):
16581659
else:
16591660
yield self.con
16601661

1661-
def execute(self, sql: str | Select | TextClause, params=None):
1662+
def execute(self, sql: str | Select | TextClause | Delete, params=None):
16621663
"""Simple passthrough to SQLAlchemy connectable"""
16631664
args = [] if params is None else [params]
16641665
if isinstance(sql, str):

0 commit comments

Comments
 (0)