Skip to content

Commit

Permalink
ref: fix types for integrations.mixins.issues in mypy 1.12.x (#79524)
Browse files Browse the repository at this point in the history
not entirely sure why mypy wasn't able to inference this -- but this
simplified the code anyway

<!-- Describe your PR here. -->
  • Loading branch information
asottile-sentry authored Oct 22, 2024
1 parent f84ce4a commit d18efd2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/sentry/integrations/mixins/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,7 @@ def get_defaults(self, project: Project, user: User):

user_defaults = user_option_value.get(self.model.provider, {})

defaults = {}
defaults.update(project_defaults)
defaults.update(user_defaults)

return defaults
return {**project_defaults, **user_defaults}

@abstractmethod
def create_issue(self, data, **kwargs):
Expand Down

0 comments on commit d18efd2

Please sign in to comment.