chore: avoid repeated type ignore noqa by adding flask_restful and flask_login in mypy import exclusions (#19224)

This commit is contained in:
Bowen Liang
2025-05-06 11:58:49 +08:00
committed by GitHub
parent 4b77c9df9d
commit 8537abfff8
141 changed files with 212 additions and 202 deletions

View File

@@ -1,5 +1,5 @@
from flask import request
from flask_restful import marshal, reqparse # type: ignore
from flask_restful import marshal, reqparse
from werkzeug.exceptions import Forbidden, NotFound
import services.dataset_service

View File

@@ -1,7 +1,7 @@
import json
from flask import request
from flask_restful import marshal, reqparse # type: ignore
from flask_restful import marshal, reqparse
from sqlalchemy import desc
from werkzeug.exceptions import NotFound

View File

@@ -1,5 +1,5 @@
from flask_login import current_user # type: ignore # type: ignore
from flask_restful import marshal, reqparse # type: ignore
from flask_login import current_user # type: ignore
from flask_restful import marshal, reqparse
from werkzeug.exceptions import NotFound
from controllers.service_api import api

View File

@@ -1,6 +1,6 @@
from flask import request
from flask_login import current_user # type: ignore
from flask_restful import marshal, reqparse # type: ignore
from flask_login import current_user
from flask_restful import marshal, reqparse
from werkzeug.exceptions import NotFound
from controllers.service_api import api