Skip to content

Commit

Permalink
Remove default engine arg.
Browse files Browse the repository at this point in the history
It's better to be explicit.
  • Loading branch information
MrCurtis committed Sep 12, 2023
1 parent 38d72ef commit f360c0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions data_setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from sqlalchemy import Column, create_engine, ForeignKey, insert, Integer, MetaData, Table
engine = create_engine("sqlite+pysqlite:///:memory:", echo=True)

def setup_data(engine=engine):
def setup_data(engine):
metadata_object = MetaData()
table_a = Table(
"table_a",
Expand Down

0 comments on commit f360c0a

Please sign in to comment.