chore(pre-commit): Add pyupgrade and pycln hooks (#24197)

This commit is contained in:
John Bodley
2023-06-01 12:01:10 -07:00
committed by GitHub
parent 7d7ce63970
commit a4d5d7c6b9
448 changed files with 3084 additions and 3305 deletions

View File

@@ -19,7 +19,7 @@ from __future__ import annotations
import importlib
import logging
from typing import Callable, Dict, TYPE_CHECKING
from typing import Callable, TYPE_CHECKING
from flask import current_app, Flask, request, Response, session
from flask_login import login_user
@@ -71,7 +71,7 @@ class MachineAuthProvider:
return driver
@staticmethod
def get_auth_cookies(user: User) -> Dict[str, str]:
def get_auth_cookies(user: User) -> dict[str, str]:
# Login with the user specified to get the reports
with current_app.test_request_context("/login"):
login_user(user)