Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get working with mypy #524

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading