mirror of https://github.com/apache/superset.git
chore(pylint): Re-enable super-with-arguments check (#16138)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
parent
ee9a384758
commit
8e07dd28bc
|
@ -87,7 +87,6 @@ disable=
|
|||
ungrouped-imports,
|
||||
import-outside-toplevel,
|
||||
raise-missing-from,
|
||||
super-with-arguments,
|
||||
too-few-public-methods,
|
||||
too-many-locals,
|
||||
duplicate-code,
|
||||
|
|
|
@ -161,7 +161,7 @@ class TopNDashboardsStrategy(Strategy):
|
|||
name = "top_n_dashboards"
|
||||
|
||||
def __init__(self, top_n: int = 5, since: str = "7 days ago") -> None:
|
||||
super(TopNDashboardsStrategy, self).__init__()
|
||||
super().__init__()
|
||||
self.top_n = top_n
|
||||
self.since = parse_human_datetime(since) if since else None
|
||||
|
||||
|
@ -206,7 +206,7 @@ class DashboardTagsStrategy(Strategy):
|
|||
name = "dashboard_tags"
|
||||
|
||||
def __init__(self, tags: Optional[List[str]] = None) -> None:
|
||||
super(DashboardTagsStrategy, self).__init__()
|
||||
super().__init__()
|
||||
self.tags = tags or []
|
||||
|
||||
def get_urls(self) -> List[str]:
|
||||
|
|
|
@ -23,7 +23,7 @@ from superset.models.tags import ObjectTypes
|
|||
|
||||
class RegexConverter(BaseConverter):
|
||||
def __init__(self, url_map: Map, *items: List[str]) -> None:
|
||||
super(RegexConverter, self).__init__(url_map) # type: ignore
|
||||
super().__init__(url_map) # type: ignore
|
||||
self.regex = items[0]
|
||||
|
||||
|
||||
|
|
|
@ -267,7 +267,7 @@ class DashboardEmailScheduleView(
|
|||
def pre_add(self, item: "DashboardEmailScheduleView") -> None:
|
||||
if item.dashboard is None:
|
||||
raise SupersetException("Dashboard is mandatory")
|
||||
super(DashboardEmailScheduleView, self).pre_add(item)
|
||||
super().pre_add(item)
|
||||
|
||||
|
||||
class SliceEmailScheduleView(EmailScheduleView): # pylint: disable=too-many-ancestors
|
||||
|
@ -348,4 +348,4 @@ class SliceEmailScheduleView(EmailScheduleView): # pylint: disable=too-many-anc
|
|||
def pre_add(self, item: "SliceEmailScheduleView") -> None:
|
||||
if item.slice is None:
|
||||
raise SupersetException("Slice is mandatory")
|
||||
super(SliceEmailScheduleView, self).pre_add(item)
|
||||
super().pre_add(item)
|
||||
|
|
Loading…
Reference in New Issue