Skip to content

Commit

Permalink
chore: add Delete to execute typing
Browse files Browse the repository at this point in the history
  • Loading branch information
gmcrocetti committed Jan 17, 2025
1 parent f79e0d3 commit b0c2eff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/io/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@

from sqlalchemy import Table
from sqlalchemy.sql.expression import (
Delete,
Select,
TextClause,
)
Expand Down Expand Up @@ -1658,7 +1659,7 @@ def run_transaction(self):
else:
yield self.con

def execute(self, sql: str | Select | TextClause, params=None):
def execute(self, sql: str | Select | TextClause | Delete, params=None):
"""Simple passthrough to SQLAlchemy connectable"""
args = [] if params is None else [params]
if isinstance(sql, str):
Expand Down

0 comments on commit b0c2eff

Please sign in to comment.