all: general maintenance, prepare for pyright

This commit is contained in:
Jens Langhammer
2020-02-18 22:12:51 +01:00
parent 865abc005a
commit 9267d0c1dd
12 changed files with 62 additions and 44 deletions

View File

@ -1,4 +1,5 @@
"""Core OAauth Views"""
from typing import Callable, Optional
from django.conf import settings
from django.contrib import messages
@ -23,7 +24,7 @@ LOGGER = get_logger()
class OAuthClientMixin:
"Mixin for getting OAuth client for a source."
client_class = None
client_class: Optional[Callable] = None
def get_client(self, source):
"Get instance of the OAuth client for this source."