Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: fix types for EventUser #72897

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Conversation

asottile-sentry
Copy link
Member

No description provided.

@asottile-sentry asottile-sentry requested review from a team June 17, 2024 21:04
@asottile-sentry asottile-sentry enabled auto-merge (squash) June 17, 2024 21:04
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 17, 2024
@@ -117,7 +118,7 @@ def get_display_name(self):
@classmethod
def for_projects(
self,
projects: list[Project],
projects: QuerySet[Project] | list[Project],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is kind of a gross union -- but tests call this with a list so it'd be annoying to fix those (it can't be Sequence because a QuerySet isn't one, it can't be Iterable because accesses are done using indices!)

@asottile-sentry asottile-sentry merged commit 66e1ad6 into master Jun 17, 2024
49 checks passed
@asottile-sentry asottile-sentry deleted the asottile-typing-eventuser branch June 17, 2024 21:32
@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants