mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-19 11:01:47 +02:00
Fix types
This commit is contained in:
parent
adfd120636
commit
fc78bdc4fe
@ -1,9 +1,8 @@
|
||||
# -*- coding: utf_8 -*-
|
||||
|
||||
from types import NoneType
|
||||
from email.mime import base
|
||||
from MySQLdb import Connection
|
||||
from sqlalchemy import create_engine
|
||||
import sqlite3
|
||||
from sqlalchemy import create_engine, engine
|
||||
import mariadb
|
||||
import pandas
|
||||
from io import StringIO
|
||||
@ -16,7 +15,7 @@ done_table = "done_songs"
|
||||
connection = None
|
||||
|
||||
|
||||
def open_db() -> Connection:
|
||||
def open_db() -> engine.base.Connection:
|
||||
global connection
|
||||
if (not connection):
|
||||
engine = create_engine(
|
||||
|
Loading…
x
Reference in New Issue
Block a user