mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +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
@@ -15,7 +15,7 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
from datetime import datetime
|
||||
from typing import List, TYPE_CHECKING
|
||||
from typing import List, Optional, TYPE_CHECKING
|
||||
|
||||
from sqlalchemy.engine.reflection import Inspector
|
||||
|
||||
@@ -83,7 +83,7 @@ class SqliteEngineSpec(BaseEngineSpec):
|
||||
|
||||
@classmethod
|
||||
def get_table_names(
|
||||
cls, database: "Database", inspector: Inspector, schema: str
|
||||
cls, database: "Database", inspector: Inspector, schema: Optional[str]
|
||||
) -> List[str]:
|
||||
"""Need to disregard the schema for Sqlite"""
|
||||
return sorted(inspector.get_table_names())
|
||||
|
||||
Reference in New Issue
Block a user