mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
chore(pylint): Remove top-level disable (#16589)
* chore(pylint): Remove top-level disable * Update examples.py * Update command.py Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
@@ -14,8 +14,6 @@
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
# pylint: disable=too-few-public-methods
|
||||
|
||||
import json
|
||||
import logging
|
||||
from typing import Any, Dict, List, Optional, Union
|
||||
@@ -85,7 +83,7 @@ def get_url(chart: Slice, extra_filters: Optional[Dict[str, Any]] = None) -> str
|
||||
return f"{baseurl}{chart.get_explore_url(overrides=extra_filters)}"
|
||||
|
||||
|
||||
class Strategy:
|
||||
class Strategy: # pylint: disable=too-few-public-methods
|
||||
"""
|
||||
A cache warm up strategy.
|
||||
|
||||
@@ -115,7 +113,7 @@ class Strategy:
|
||||
raise NotImplementedError("Subclasses must implement get_urls!")
|
||||
|
||||
|
||||
class DummyStrategy(Strategy):
|
||||
class DummyStrategy(Strategy): # pylint: disable=too-few-public-methods
|
||||
"""
|
||||
Warm up all charts.
|
||||
|
||||
@@ -140,7 +138,7 @@ class DummyStrategy(Strategy):
|
||||
return [get_url(chart) for chart in charts]
|
||||
|
||||
|
||||
class TopNDashboardsStrategy(Strategy):
|
||||
class TopNDashboardsStrategy(Strategy): # pylint: disable=too-few-public-methods
|
||||
"""
|
||||
Warm up charts in the top-n dashboards.
|
||||
|
||||
@@ -187,7 +185,7 @@ class TopNDashboardsStrategy(Strategy):
|
||||
return urls
|
||||
|
||||
|
||||
class DashboardTagsStrategy(Strategy):
|
||||
class DashboardTagsStrategy(Strategy): # pylint: disable=too-few-public-methods
|
||||
"""
|
||||
Warm up charts in dashboards with custom tags.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user