Typing, docstrings, refactors.
This commit is contained in:
parent
85c4de0d69
commit
3c8d2281ca
2 changed files with 20 additions and 6 deletions
|
|
@ -46,7 +46,7 @@ class MySSHTunnel:
|
|||
self.tunnel.stop()
|
||||
|
||||
|
||||
def get_connection(connection_config: dict) -> Union[trino.dbapi.Connection]:
|
||||
def get_connection(connection_config: dict) -> Union[trino.dbapi.Connection, mysql.connector.MySQLConnection]:
|
||||
"""
|
||||
Pick the right way to build a connection and pass it the connection details.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue