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 typing for sentry.buffer.base #72809

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

asottile-sentry
Copy link
Member

No description provided.

@asottile-sentry asottile-sentry requested review from a team June 14, 2024 20:44
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 14, 2024
@@ -150,7 +150,7 @@ def process(
# continue
pass
else:
group.update(**update_kwargs)
group.update(using=None, **update_kwargs)
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 one is a bit annoying, because using could be passed as a named or positional it could collide with arbitrary names in update_kwargs so the type checker rejects it. explicitly passing the default here appeases the checker though

Copy link
Member

Choose a reason for hiding this comment

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

what's the annoyance? seems fine to me as it's just overridden if present in update_kwargs

Copy link
Member Author

Choose a reason for hiding this comment

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

in practice we don't have fields named using so it couldn't possibly collide

@asottile-sentry asottile-sentry merged commit 718ddc7 into master Jun 14, 2024
49 checks passed
@asottile-sentry asottile-sentry deleted the asottile-typing-buffer-base branch June 14, 2024 22:53
andreiborza pushed a commit that referenced this pull request Jun 17, 2024
Copy link

sentry-io bot commented Jun 21, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ OperationalError: QueryCanceled('canceling statement due to user request\n') sentry.tasks.process_buffer.process_incr View Issue
  • ‼️ OperationalError: OperationalError('server closed the connection unexpectedly\n\tThis probably means the server ter... sentry.tasks.process_buffer.process_incr View Issue

Did you find this useful? React with a 👍 or 👎

@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 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