mirror of
https://github.com/apache/superset.git
synced 2026-04-21 09:04:38 +00:00
[ci] Deprecate flake8 (#8409)
* [ci] Deprecate flake8 * Addressing @villebro's comments
This commit is contained in:
committed by
Maxime Beauchemin
parent
a19990185d
commit
9fc37ea9f1
@@ -14,12 +14,11 @@
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
from typing import Optional
|
||||
from typing import Optional, Type
|
||||
|
||||
from . import base # noqa
|
||||
from . import presto_db # noqa
|
||||
from .base import SQLValidationAnnotation # noqa
|
||||
from . import base, presto_db
|
||||
from .base import SQLValidationAnnotation
|
||||
|
||||
|
||||
def get_validator_by_name(name: str) -> Optional[base.BaseSQLValidator]:
|
||||
def get_validator_by_name(name: str) -> Optional[Type[base.BaseSQLValidator]]:
|
||||
return {"PrestoDBSQLValidator": presto_db.PrestoDBSQLValidator}.get(name)
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from contextlib import closing
|
||||
import logging
|
||||
import time
|
||||
from contextlib import closing
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
from flask import g
|
||||
|
||||
Reference in New Issue
Block a user