Browse Source

ref: unify signature of get_projects_list (#74972)

pointed out by mypy 1.11
<!-- Describe your PR here. -->
anthony sottile 7 months ago
parent
commit
32b627cf71

+ 1 - 1
fixtures/integrations/jira/mock.py

@@ -5,7 +5,7 @@ DEFAULT_PROJECT_ID = "10000"
 
 
 class MockJira(StubJiraApiClient, MockService):
-    def get_projects_list(self):
+    def get_projects_list(self, cached: bool = True):
         """
         List all projects in the Jira data format.
 

+ 1 - 1
fixtures/integrations/jira/stub_client.py

@@ -23,7 +23,7 @@ class StubJiraApiClient(StubService):
     def get_versions(self, project_id):
         return self._get_stub_data("versions_response.json")
 
-    def get_projects_list(self, cached=True):
+    def get_projects_list(self, cached: bool = True):
         return self._get_stub_data("project_list_response.json")
 
     def get_issue(self, issue_key):

+ 1 - 1
src/sentry/integrations/jira_server/client.py

@@ -116,7 +116,7 @@ class JiraServerClient(ApiClient):
     def update_comment(self, issue_key, comment_id, comment):
         return self.put(self.COMMENT_URL % (issue_key, comment_id), data={"body": comment})
 
-    def get_projects_list(self, cached=True):
+    def get_projects_list(self, cached: bool = True):
         if not cached:
             return self.get(self.PROJECT_URL)
         return self.get_cached(self.PROJECT_URL)