mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
style(mypy): Spit-and-polish pass (#10001)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
from typing import Callable
|
||||
from typing import Any
|
||||
|
||||
import simplejson as json
|
||||
from flask import g, redirect, request, Response
|
||||
@@ -40,7 +40,7 @@ from .base import (
|
||||
|
||||
|
||||
class QueryFilter(BaseFilter): # pylint: disable=too-few-public-methods
|
||||
def apply(self, query: BaseQuery, value: Callable) -> BaseQuery:
|
||||
def apply(self, query: BaseQuery, value: Any) -> BaseQuery:
|
||||
"""
|
||||
Filter queries to only those owned by current user. If
|
||||
can_access_all_queries permission is set a user can list all queries
|
||||
|
||||
Reference in New Issue
Block a user