diff --git a/src/ahriman/web/cors.py b/src/ahriman/web/cors.py index 0c4b076e..dc2f83f4 100644 --- a/src/ahriman/web/cors.py +++ b/src/ahriman/web/cors.py @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -import aiohttp_cors # type: ignore[import-untyped] +import aiohttp_cors from aiohttp.web import Application @@ -36,7 +36,7 @@ def setup_cors(application: Application) -> aiohttp_cors.CorsConfig: aiohttp_cors.CorsConfig: generated CORS configuration """ cors = aiohttp_cors.setup(application, defaults={ - "*": aiohttp_cors.ResourceOptions( + "*": aiohttp_cors.ResourceOptions( # type: ignore[no-untyped-call] expose_headers="*", allow_headers="*", allow_methods="*", diff --git a/src/ahriman/web/views/base.py b/src/ahriman/web/views/base.py index 32f0b33a..f5b4d9cf 100644 --- a/src/ahriman/web/views/base.py +++ b/src/ahriman/web/views/base.py @@ -18,7 +18,7 @@ # along with this program. If not, see . # from aiohttp.web import HTTPBadRequest, HTTPNotFound, Request, StreamResponse, View -from aiohttp_cors import CorsViewMixin # type: ignore[import-untyped] +from aiohttp_cors import CorsViewMixin from collections.abc import Awaitable, Callable from typing import ClassVar, TypeVar