Browse Source

ref: fix typing in slack.webhooks.base (#71768)

<!-- Describe your PR here. -->
anthony sottile 9 months ago
parent
commit
0fc51c7f3f
2 changed files with 2 additions and 3 deletions
  1. 0 1
      pyproject.toml
  2. 2 2
      src/sentry/integrations/slack/views/link_identity.py

+ 0 - 1
pyproject.toml

@@ -331,7 +331,6 @@ module = [
     "sentry.integrations.slack.views.link_team",
     "sentry.integrations.slack.views.link_team",
     "sentry.integrations.slack.views.unlink_team",
     "sentry.integrations.slack.views.unlink_team",
     "sentry.integrations.slack.webhooks.action",
     "sentry.integrations.slack.webhooks.action",
-    "sentry.integrations.slack.webhooks.base",
     "sentry.integrations.slack.webhooks.command",
     "sentry.integrations.slack.webhooks.command",
     "sentry.integrations.slack.webhooks.event",
     "sentry.integrations.slack.webhooks.event",
     "sentry.integrations.utils.commit_context",
     "sentry.integrations.utils.commit_context",

+ 2 - 2
src/sentry/integrations/slack/views/link_identity.py

@@ -5,9 +5,9 @@ from rest_framework.request import Request
 
 
 from sentry.integrations.utils import get_identity_or_404
 from sentry.integrations.utils import get_identity_or_404
 from sentry.models.identity import Identity
 from sentry.models.identity import Identity
-from sentry.models.integrations.integration import Integration
 from sentry.notifications.notificationcontroller import NotificationController
 from sentry.notifications.notificationcontroller import NotificationController
 from sentry.notifications.notifications.integration_nudge import IntegrationNudgeNotification
 from sentry.notifications.notifications.integration_nudge import IntegrationNudgeNotification
+from sentry.services.hybrid_cloud.integration.model import RpcIntegration
 from sentry.types.integrations import ExternalProviderEnum, ExternalProviders
 from sentry.types.integrations import ExternalProviderEnum, ExternalProviders
 from sentry.utils.signing import unsign
 from sentry.utils.signing import unsign
 from sentry.web.frontend.base import BaseView, control_silo_view
 from sentry.web.frontend.base import BaseView, control_silo_view
@@ -23,7 +23,7 @@ SUCCESS_LINKED_MESSAGE = (
 
 
 
 
 def build_linking_url(
 def build_linking_url(
-    integration: Integration, slack_id: str, channel_id: str, response_url: str
+    integration: RpcIntegration, slack_id: str, channel_id: str, response_url: str
 ) -> str:
 ) -> str:
     return base_build_linking_url(
     return base_build_linking_url(
         "sentry-integration-slack-link-identity",
         "sentry-integration-slack-link-identity",