Skip to content

Commit

Permalink
Merge pull request #524 from bheesham/mypy
Browse files Browse the repository at this point in the history
Get working with mypy
  • Loading branch information
bheesham authored Oct 17, 2024
2 parents 32b710b + a40a236 commit 456a2f6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions dashboard/__init__.py
Original file line number Diff line number Diff line change
@@ -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 -*-

Expand Down
13 changes: 7 additions & 6 deletions dashboard/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import json
import logging
import logging.config
import mimetypes
import os
import redis
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions dashboard/oidc_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 456a2f6

Please sign in to comment.