Skip to content

Commit

Permalink
remove cast
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyuan committed Oct 15, 2023
1 parent f6e5b51 commit 417fd2e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/sentry/integrations/github_enterprise/test_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import base64
from typing import cast
from unittest import mock

import pytest
Expand Down Expand Up @@ -67,11 +66,9 @@ def setUp(self):
external_id=123,
integration_id=integration.id,
)
self.install = cast(
GitHubEnterpriseIntegration,
integration.get_installation(organization_id=self.organization.id),
)
assert isinstance(self.install, GitHubEnterpriseIntegration)
install = integration.get_installation(organization_id=self.organization.id)
assert isinstance(install, GitHubEnterpriseIntegration)
self.install = install
self.gh_client = self.install.get_client()
responses.add(
method=responses.POST,
Expand Down

0 comments on commit 417fd2e

Please sign in to comment.