Updated lint in schedules.py in tasks: unused_import, ungrouped_import and changed argument name to remove unused-argument (#11045)

This commit is contained in:
Kasia Kucharczyk 2020-09-29 17:10:46 +02:00 committed by GitHub
parent 5d08a426d3
commit 89bf76553e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -34,7 +34,7 @@ from typing import (
TYPE_CHECKING,
Union,
)
from urllib.error import URLError # pylint: disable=ungrouped-imports
from urllib.error import URLError
import croniter
import simplejson as json
@ -72,7 +72,6 @@ from superset.utils.urls import get_url_path
# pylint: disable=too-few-public-methods
if TYPE_CHECKING:
# pylint: disable=unused-import
from flask_appbuilder.security.sqla.models import User
from werkzeug.datastructures import TypeConversionDict
@ -485,8 +484,8 @@ def deliver_slice( # pylint: disable=too-many-arguments
bind=True,
soft_time_limit=config["EMAIL_ASYNC_TIME_LIMIT_SEC"],
)
def schedule_email_report( # pylint: disable=unused-argument
task: Task,
def schedule_email_report(
_task: Task,
report_type: ScheduleType,
schedule_id: int,
recipients: Optional[str] = None,
@ -541,8 +540,8 @@ def schedule_email_report( # pylint: disable=unused-argument
retry_kwargs={"max_retries": 5},
retry_backoff=True,
)
def schedule_alert_query( # pylint: disable=unused-argument
task: Task,
def schedule_alert_query(
_task: Task,
report_type: ScheduleType,
schedule_id: int,
recipients: Optional[str] = None,