Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Sep 3, 2021
1 parent b48e5ea commit 4bd20a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions superset/db_engine_specs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ def get_available_engine_specs() -> Dict[Type[BaseEngineSpec], Set[str]]:
backend = dialect.name
if isinstance(backend, bytes):
backend = backend.decode()
if backend in backend_replacements:
backend = backend_replacements[backend]
backend = backend_replacements.get(backend, backend)

driver = getattr(dialect, "driver", dialect.name)
if isinstance(driver, bytes):
Expand Down
2 changes: 1 addition & 1 deletion superset/models/slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
logger = logging.getLogger(__name__)


class Slice( # pylint: disable=too-many-public-methods, too-many-instance-attributes
class Slice( # pylint: disable=too-many-public-methods
Model, AuditMixinNullable, ImportExportMixin
):
"""A slice is essentially a report or a view on data"""
Expand Down

0 comments on commit 4bd20a0

Please sign in to comment.