mirror of
https://github.com/apache/superset.git
synced 2026-04-26 03:24:53 +00:00
chore(pre-commit): Add pyupgrade and pycln hooks (#24197)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
import logging
|
||||
from typing import Any, Dict
|
||||
from typing import Any
|
||||
|
||||
from flask import request, Response
|
||||
from flask_appbuilder.api import expose, permission_name, protect, rison, safe
|
||||
@@ -127,7 +127,7 @@ class AnnotationRestApi(BaseSupersetModelRestApi):
|
||||
|
||||
@staticmethod
|
||||
def _apply_layered_relation_to_rison( # pylint: disable=invalid-name
|
||||
layer_id: int, rison_parameters: Dict[str, Any]
|
||||
layer_id: int, rison_parameters: dict[str, Any]
|
||||
) -> None:
|
||||
if "filters" not in rison_parameters:
|
||||
rison_parameters["filters"] = []
|
||||
|
||||
Reference in New Issue
Block a user