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

Add type hints to Redis #3110

Merged
merged 3 commits into from
Dec 17, 2024
Merged

Conversation

Kludex
Copy link
Contributor

@Kludex Kludex commented Dec 13, 2024

No description provided.

@xrmx xrmx added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Dec 17, 2024
@xrmx
Copy link
Contributor

xrmx commented Dec 17, 2024

We have a pylint failure here

@Kludex Kludex force-pushed the type-hints-to-redis branch from 97db5cb to 186b3ec Compare December 17, 2024 13:41
@Kludex
Copy link
Contributor Author

Kludex commented Dec 17, 2024

We have a pylint failure here

fixed 👀 👍

@emdneto emdneto requested a review from a team December 17, 2024 18:09
Copy link
Contributor

@lzchen lzchen left a comment

Choose a reason for hiding this comment

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

Big thanks for this!

@lzchen lzchen merged commit 6fcaa0a into open-telemetry:main Dec 17, 2024
573 checks passed
lzchen added a commit that referenced this pull request Dec 18, 2024
Followup to #3110

I believe [Pep 0604](https://peps.python.org/pep-0604/) which introduces union typing syntax is only supported for Python 3.10+.
Since all instrumentations still support 3.8+, I believe we still need to adhere to the explicit `Optional` and `Union` typings.
@lzchen lzchen mentioned this pull request Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants