MKesper
MKesper

Reputation: 509

Correct type for sqlite connection?

Still new to Python typing, what would be the correct type to replace the ??? here?

def update_sqlite(result: dict, db_connection: ???):
    pass

with sqlite3.connect('../data/Reports.db') as report_db:
    update_sqlite(result, report_db)

Upvotes: 5

Views: 2695

Answers (1)

user325117
user325117

Reputation:

The correct type is sqlite3.Connection.

Upvotes: 9

Related Questions