|
@@ -1,12 +1,18 @@
|
|
|
-__all__ = ["AuthView", "ConfigureView"]
|
|
|
+from __future__ import annotations
|
|
|
+
|
|
|
+from typing import TYPE_CHECKING
|
|
|
|
|
|
from rest_framework.request import Request
|
|
|
|
|
|
from sentry.plugins.base.view import PluggableViewMixin
|
|
|
from sentry.web.frontend.base import BaseView
|
|
|
|
|
|
+if TYPE_CHECKING:
|
|
|
+ from sentry.models.authprovider import AuthProvider
|
|
|
+ from sentry.models.organization import Organization
|
|
|
|
|
|
-class AuthView(BaseView):
|
|
|
+
|
|
|
+class AuthView(BaseView): # type: ignore[misc]
|
|
|
"""
|
|
|
A segment of Provider's auth pipeline.
|
|
|
|
|
@@ -16,13 +22,16 @@ class AuthView(BaseView):
|
|
|
auth_required = False
|
|
|
sudo_required = False
|
|
|
|
|
|
- def get_ident(self):
|
|
|
+ def get_ident(self) -> str:
|
|
|
cls = type(self)
|
|
|
return f"{cls.__module__}.{cls.__name__}"
|
|
|
|
|
|
|
|
|
-class ConfigureView(BaseView, PluggableViewMixin):
|
|
|
- """ """
|
|
|
-
|
|
|
- def dispatch(self, request: Request, organization, auth_provider):
|
|
|
+class ConfigureView(BaseView, PluggableViewMixin): # type: ignore[misc]
|
|
|
+ def dispatch(
|
|
|
+ self, request: Request, organization: Organization, auth_provider: AuthProvider
|
|
|
+ ) -> str:
|
|
|
return ""
|
|
|
+
|
|
|
+
|
|
|
+__all__ = ["AuthView", "ConfigureView"]
|