Skip to content

Commit

Permalink
ref: fix types for integrations.jira.client
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile-sentry committed Feb 28, 2025
1 parent 059f863 commit 6702fee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ module = [
"sentry.integrations.github_enterprise.integration",
"sentry.integrations.gitlab.client",
"sentry.integrations.gitlab.issues",
"sentry.integrations.jira.client",
"sentry.integrations.jira.integration",
"sentry.integrations.jira.webhooks.base",
"sentry.integrations.jira.webhooks.issue_updated",
Expand Down
6 changes: 4 additions & 2 deletions src/sentry/integrations/jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,17 @@ def __init__(
verify_ssl: bool,
logging_context: Any | None = None,
):
self.base_url = integration.metadata.get("base_url")
self.shared_secret = integration.metadata.get("shared_secret")
self.base_url = integration.metadata["base_url"]
self.shared_secret = integration.metadata["shared_secret"]
super().__init__(
integration_id=integration.id,
verify_ssl=verify_ssl,
logging_context=logging_context,
)

def finalize_request(self, prepared_request: PreparedRequest):
assert prepared_request.url is not None
assert prepared_request.method is not None
path = prepared_request.url[len(self.base_url) :]
url_params = dict(parse_qs(urlsplit(path).query))
path = path.split("?")[0]
Expand Down

0 comments on commit 6702fee

Please sign in to comment.