mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: enforce more ruff rules (#31447)
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9da65d6bfd
commit
e51b95ffa8
@@ -94,7 +94,7 @@ def get_engine_spec(backend: str, driver: Optional[str] = None) -> type[BaseEngi
|
||||
supporting that driver exists then a backend-only match is done, in order to allow new
|
||||
drivers to work with Superset even if they are not listed in the DB engine spec
|
||||
drivers.
|
||||
"""
|
||||
""" # noqa: E501
|
||||
engine_specs = load_engine_specs()
|
||||
|
||||
if driver is not None:
|
||||
@@ -121,7 +121,7 @@ backend_replacements = {
|
||||
|
||||
|
||||
# pylint: disable=too-many-branches
|
||||
def get_available_engine_specs() -> dict[type[BaseEngineSpec], set[str]]:
|
||||
def get_available_engine_specs() -> dict[type[BaseEngineSpec], set[str]]: # noqa: C901
|
||||
"""
|
||||
Return available engine specs and installed drivers for them.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user