sqlite 连接的正确类型?
Correct type for sqlite connection?
Python 打字还是个新手,什么是替换 ??? 的正确类型?在吗?
def update_sqlite(result: dict, db_connection: ???):
pass
with sqlite3.connect('../data/Reports.db') as report_db:
update_sqlite(result, report_db)
啊,你说的是 PEP 484? The correct type is sqlite3.Connection
。
Python 打字还是个新手,什么是替换 ??? 的正确类型?在吗?
def update_sqlite(result: dict, db_connection: ???):
pass
with sqlite3.connect('../data/Reports.db') as report_db:
update_sqlite(result, report_db)
啊,你说的是 PEP 484? The correct type is sqlite3.Connection
。