-
Notifications
You must be signed in to change notification settings - Fork 629
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 dbapi #3068
base: main
Are you sure you want to change the base?
Add type hints to dbapi #3068
Conversation
What's this docs pipeline failing? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think to fix docs CI you need to append the class opentelemetry.instrumentation.dbapi.TracedConnectionProxy
in nitpick-exceptions.ini file.
What's that |
...tion/opentelemetry-instrumentation-dbapi/src/opentelemetry/instrumentation/dbapi/__init__.py
Outdated
Show resolved
Hide resolved
81cd291
to
4171bca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I think would be nice a changelog in that case although there are no overall behavior break. QQ: Do we need py.typed
here as well?
Yeah, makes sense. I've added the changelog entry more aligned with the fact that I moved the |
There are runtime changes i.e. I took out the proxy classes from the inside of the function. This is necessary to have correct type hints.