Skip to content

Commit f2ad820

Browse files
committed
fix(pipeline): Typing in oauth2
1 parent bfe315e commit f2ad820

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sentry/identity/oauth2.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
IntegrationPipelineViewEvent,
3333
IntegrationPipelineViewType,
3434
)
35+
from sentry.pipeline.base import Pipeline
3536
from sentry.pipeline.types import PipelineStepResult
3637
from sentry.pipeline.views.base import PipelineView
3738
from sentry.shared_integrations.exceptions import ApiError, ApiInvalidRequestError, ApiUnauthorized
@@ -282,7 +283,7 @@ def __init__(
282283
self.bind_key = bind_key
283284
self.extra_authorize_params = extra_authorize_params or {}
284285

285-
def get_step_data(self, pipeline: Any, request: HttpRequest) -> dict[str, str]:
286+
def get_step_data(self, pipeline: Pipeline[Any, Any], request: HttpRequest) -> dict[str, str]:
286287
params = urlencode(
287288
{
288289
"client_id": self.client_id,
@@ -301,7 +302,7 @@ def get_serializer_cls(self) -> type:
301302
def handle_post(
302303
self,
303304
validated_data: dict[str, str],
304-
pipeline: Any,
305+
pipeline: Pipeline[Any, Any],
305306
request: HttpRequest,
306307
) -> PipelineStepResult:
307308
code = validated_data["code"]

0 commit comments

Comments
 (0)