mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
chore(pre-commit): Add pyupgrade and pycln hooks (#24197)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from typing import Optional, TYPE_CHECKING
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from flask import current_app
|
||||
|
||||
@@ -32,7 +32,7 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
# TODO: duplicate code with DatabaseDao, below function should be moved or use dao
|
||||
def get_or_create_db(
|
||||
database_name: str, sqlalchemy_uri: str, always_create: Optional[bool] = True
|
||||
database_name: str, sqlalchemy_uri: str, always_create: bool | None = True
|
||||
) -> Database:
|
||||
# pylint: disable=import-outside-toplevel
|
||||
from superset import db
|
||||
|
||||
Reference in New Issue
Block a user