Skip to content

Commit 5f7c37b

Browse files
committed
fix typing for real
1 parent 2e299cc commit 5f7c37b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/sentry/integrations/example/integration.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ class ExampleIntegrationProvider(IntegrationProvider):
220220
IntegrationFeatures.STACKTRACE_LINK,
221221
]
222222
)
223+
cell_restricted = False
224+
225+
@property
226+
def is_cell_restricted(self) -> bool:
227+
return self.cell_restricted
223228

224229
def get_pipeline_views(self) -> Sequence[PipelineView[IntegrationPipeline]]:
225230
return [ExampleSetupView()]

tests/sentry/integrations/test_pipeline.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _modify_provider(self):
7575
yield
7676

7777
def _setup_cell_restriction(self):
78-
self.provider.is_cell_restricted = True # type: ignore[misc]
78+
self.provider.cell_restricted = True
7979
na_orgs = [
8080
self.create_organization(name="na_org"),
8181
self.create_organization(name="na_org_2"),
@@ -144,7 +144,7 @@ def test_with_customer_domain(self, *args) -> None:
144144
@patch("sentry.signals.integration_added.send_robust")
145145
def test_provider_should_check_cell_violation(self, *args) -> None:
146146
"""Ensures we validate cells if `provider.is_cell_restricted` is set to True"""
147-
self.provider.is_cell_restricted = True # type: ignore[misc]
147+
self.provider.cell_restricted = True
148148
self.pipeline.state.data = {"external_id": self.external_id}
149149
with patch(
150150
"sentry.integrations.pipeline.is_violating_cell_restriction"
@@ -727,7 +727,7 @@ def _modify_provider(self):
727727
yield
728728

729729
def _setup_cell_restriction(self):
730-
self.provider.is_cell_restricted = True # type: ignore[misc]
730+
self.provider.cell_restricted = True
731731
na_orgs = [
732732
self.create_organization(name="na_org"),
733733
self.create_organization(name="na_org_2"),

0 commit comments

Comments
 (0)