KEMBAR78
ref: fix some typing in hybrid cloud modules by asottile-sentry · Pull Request #72635 · getsentry/sentry · GitHub
Skip to content

Conversation

@asottile-sentry
Copy link
Contributor

fixes most errors in these modules when BaseManager becomes typed

fixes most errors in these modules when BaseManager becomes typed
@asottile-sentry asottile-sentry requested review from a team June 12, 2024 18:30
@asottile-sentry asottile-sentry marked this pull request as ready for review June 12, 2024 18:30
@asottile-sentry asottile-sentry requested a review from a team as a code owner June 12, 2024 18:30
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 12, 2024
request: HttpRequest,
integration_id: int | None = None,
) -> Self:
) -> WebhookPayload:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

due to an annoying variance issue interacting with a microbug in django-stubs it can't inference cls.objects properly here as also being BaseManager[Self]

@asottile-sentry asottile-sentry merged commit 8d255a2 into master Jun 12, 2024
@asottile-sentry asottile-sentry deleted the asottile-hc-typing-manager-enforced branch June 12, 2024 19:00
@sentry-io
Copy link

sentry-io bot commented Jun 26, 2024

Suspect Issues

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

  • ‼️ OutboxFlushError: Could not flush shard category=30 (SENTRY_APP_UPDATE) sentry.tasks.drain_outbox_shards_control View Issue

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

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