Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
nkitsaini committed Dec 6, 2024
1 parent 75660a8 commit 9e647b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sql/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(self, magic, user_ns, line, cell, connection=None) -> None:
self.parsed["connection"] = self.args.line[0]

if connection is not None:
self.parsed['connection'] = connection
self.parsed["connection"] = connection

if self.args.with_:
self.args.with_ = [
Expand Down
10 changes: 8 additions & 2 deletions src/sql/magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,17 @@ def execute(self, line="", cell="", local_ns=None, connection=None):
"""
return self._execute(
line=line, cell=cell, local_ns=local_ns, is_interactive_mode=False, connection=connection
line=line,
cell=cell,
local_ns=local_ns,
is_interactive_mode=False,
connection=connection,
)

@modify_exceptions
def _execute(self, line, cell, local_ns, is_interactive_mode=False, connection=None):
def _execute(
self, line, cell, local_ns, is_interactive_mode=False, connection=None
):
"""
This function implements the cell logic; we create this private
method so we can control how the function is called. Otherwise,
Expand Down

0 comments on commit 9e647b6

Please sign in to comment.