8000 Migrate typing for integrations - part 5 by sl0thentr0py · Pull Request #4534 · getsentry/sentry-python · GitHub
[go: up one dir, main page]

Skip to content

Migrate typing for integrations - part 5 #4534

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

Merged
merged 1 commit into from
Jun 30, 2025

Conversation

sl0thentr0py
Copy link
Member

No description provided.

@sl0thentr0py sl0thentr0py requested a review from a team as a code owner June 27, 2025 14:20
@sl0thentr0py sl0thentr0py mentioned this pull request Jun 27, 2025
@sl0thentr0py sl0thentr0py force-pushed the neel/typing-integrations-5 branch from 9c82c88 to 7b8cb25 Compare June 30, 2025 10:40
@sl0thentr0py sl0thentr0py merged commit 4c8b4e9 into neel/typing Jun 30, 2025
106 of 107 checks passed
@sl0thentr0py sl0thentr0py deleted the neel/typing-integrations-5 branch June 30, 2025 10:40
sl0thentr0py added a commit that referenced this pull request Jun 30, 2025
extracted from
https://github.com/getsentry/sentry-python/pull/4487/files with lots of
manual fixes

* migrate old style `# type: bla` to inline types
* most importantly use
[`__future__.annotations`](https://peps.python.org/pep-0563/#enabling-the-future-behavior-in-python-3-7)
so that we can simply use forward annotations without wrapping them in
strings like we did before, this simplifies things substantially
* also guard only things that shouldn't be imported under
`TYPE_CHECKING`, in the future it seems we should avoid using
`TYPE_CHECKING` completely
* #4510
* #4522
* #4529
* #4530
* #4532
* #4533
* #4534

closes #2585
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0