From a40a236ebce6aeecc25f92c8399261f4da9fa369 Mon Sep 17 00:00:00 2001 From: Bheesham Persaud Date: Thu, 17 Oct 2024 10:04:47 -0400 Subject: [PATCH] Get working with mypy Full mypy support will be coming soon! --- dashboard/__init__.py | 4 ++-- dashboard/app.py | 13 +++++++------ dashboard/oidc_auth.py | 6 +++--- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/dashboard/__init__.py b/dashboard/__init__.py index aacc051b..8b5f2670 100644 --- a/dashboard/__init__.py +++ b/dashboard/__init__.py @@ -1,7 +1,7 @@ import os -from everett.manager import ConfigManager -from everett.manager import ConfigOSEnv +from everett.manager import ConfigManager # type: ignore +from everett.manager import ConfigOSEnv # type: ignore # -*- coding: utf-8 -*- diff --git a/dashboard/app.py b/dashboard/app.py index 0d8cb3d6..0c9fd4a7 100644 --- a/dashboard/app.py +++ b/dashboard/app.py @@ -2,6 +2,7 @@ import json import logging +import logging.config import mimetypes import os import redis @@ -16,13 +17,13 @@ from flask import send_from_directory from flask import session -from flask_assets import Bundle -from flask_assets import Environment -from flask_kvsession import KVSessionExtension -from flask_talisman import Talisman +from flask_assets import Bundle # type: ignore +from flask_assets import Environment # type: ignore +from flask_kvsession import KVSessionExtension # type: ignore +from flask_talisman import Talisman # type: ignore -from simplekv.memory.redisstore import RedisStore -from simplekv.decorator import PrefixDecorator +from simplekv.memory.redisstore import RedisStore # type: ignore +from simplekv.decorator import PrefixDecorator # type: ignore from dashboard import oidc_auth from dashboard import config diff --git a/dashboard/oidc_auth.py b/dashboard/oidc_auth.py index fe7d1305..baad21a3 100644 --- a/dashboard/oidc_auth.py +++ b/dashboard/oidc_auth.py @@ -6,9 +6,9 @@ import josepy.errors as JWSErrors """Class that governs all authentication with open id connect.""" -from flask_pyoidc import OIDCAuthentication -from flask_pyoidc.provider_configuration import ClientMetadata -from flask_pyoidc.provider_configuration import ProviderConfiguration +from flask_pyoidc import OIDCAuthentication # type: ignore +from flask_pyoidc.provider_configuration import ClientMetadata # type: ignore +from flask_pyoidc.provider_configuration import ProviderConfiguration # type: ignore logger = logging.getLogger()