Skip to content
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
2 changes: 1 addition & 1 deletion src/sentry/integrations/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def get_pipeline_views(
"""
raise NotImplementedError

def get_pipeline_api_steps(self) -> ApiPipelineSteps[IntegrationPipeline]:
def get_pipeline_api_steps(self) -> ApiPipelineSteps[IntegrationPipeline] | None:
"""
Return API step objects for this provider's pipeline, or None if API
mode is not supported. Override to enable the pipeline API for this
Expand Down
2 changes: 1 addition & 1 deletion src/sentry/integrations/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def get_pipeline_views(
]:
return self.provider.get_pipeline_views()

def get_pipeline_api_steps(self) -> ApiPipelineSteps[IntegrationPipeline]:
def get_pipeline_api_steps(self) -> ApiPipelineSteps[IntegrationPipeline] | None:
return self.provider.get_pipeline_api_steps()

def get_analytics_event(self) -> analytics.Event | None:
Expand Down
2 changes: 1 addition & 1 deletion src/sentry/pipeline/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def fetch_state(self, key: str | None = None) -> Any | None:
return nested_pipeline.fetch_state(key)
return self._fetch_state(key)

def get_pipeline_api_steps(self) -> ApiPipelineSteps[Self]:
def get_pipeline_api_steps(self) -> ApiPipelineSteps[Self] | None:
"""
Return API step objects for this pipeline, or None if API mode is not
supported. Steps may be callables for late binding (resolved when the
Expand Down
2 changes: 1 addition & 1 deletion src/sentry/pipeline/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_pipeline_views(self) -> Sequence[PipelineView[P] | Callable[[], Pipeline
>>> return [OAuthInitView(), OAuthCallbackView()]
"""

def get_pipeline_api_steps(self) -> ApiPipelineSteps[P]:
def get_pipeline_api_steps(self) -> ApiPipelineSteps[P] | None:
"""
Return API step objects for this provider's pipeline, or None if API
mode is not supported. Override to enable the pipeline API.
Expand Down
2 changes: 1 addition & 1 deletion src/sentry/pipeline/views/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def handle_post(


type ApiPipelineStep[P] = ApiPipelineEndpoint[P] | Callable[[], ApiPipelineEndpoint[P]]
type ApiPipelineSteps[P] = Sequence[ApiPipelineStep[P]] | None
type ApiPipelineSteps[P] = Sequence[ApiPipelineStep[P]]
Comment thread
cursor[bot] marked this conversation as resolved.


def render_react_view(
Expand Down
Loading