Skip to content

ref: fix typing for sentry.buffer.base - #72809

Merged
asottile-sentry merged 1 commit into
masterfrom
asottile-typing-buffer-base
Jun 14, 2024
Merged

asottile-sentry merged 1 commit into
masterfrom
asottile-typing-buffer-base

Conversation

@asottile-sentry

Copy link
Copy Markdown
Contributor

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
Comment thread src/sentry/buffer/base.py
pass
else:
group.update(**update_kwargs)
group.update(using=None, **update_kwargs)

Copy link
Copy Markdown
Contributor 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
Copy Markdown
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
Copy Markdown
Contributor 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
@asottile-sentry
asottile-sentry deleted the asottile-typing-buffer-base branch June 14, 2024 22:53
@sentry

sentry Bot commented Jun 21, 2024 •

Copy link
Copy Markdown
Contributor

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

This branch was successfully deployed

1 active deployment
Preview — 2ac6470b Deployed Jun 14, 2024 by vercel[bot]
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