mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +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.
|
||||
from datetime import datetime, timedelta
|
||||
from typing import Any, Dict, List
|
||||
from typing import Any
|
||||
|
||||
import humanize
|
||||
from sqlalchemy import and_, or_
|
||||
@@ -34,8 +34,8 @@ class LogDAO(BaseDAO):
|
||||
|
||||
@staticmethod
|
||||
def get_recent_activity(
|
||||
user_id: int, actions: List[str], distinct: bool, page: int, page_size: int
|
||||
) -> List[Dict[str, Any]]:
|
||||
user_id: int, actions: list[str], distinct: bool, page: int, page_size: int
|
||||
) -> list[dict[str, Any]]:
|
||||
has_subject_title = or_(
|
||||
and_(
|
||||
Dashboard.dashboard_title is not None,
|
||||
|
||||
Reference in New Issue
Block a user