-
Notifications
You must be signed in to change notification settings - Fork 706
Ensure that type info is picked up from installed package. #124
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
Ensure that type info is picked up from installed package. #124
Conversation
Actually I'm not ensuring anything here anymore, I just hope for the best 😟 I guess I'll need to amend this to test that another package can pick up the type information if opentelemetry-api is installed. |
fdf02d3
to
58d747c
Compare
Now, the py.typed installation is checked and even works due to adding MANIFEST.in. 😄 Removing WIP label, as this is now ready for review. |
29fdf42
to
f1af9ff
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.
LGTM, but no manifest for the SDK?
We don't type-annotate the SDK (yet 😉) but I can add a MANIFEST.in there too to be future-proof. |
This required moving all top-level modules to a sub-package, to not create collisions with py.typed marker files. See https://www.python.org/dev/peps/pep-0561/#packaging-type-information
f1af9ff
to
8579256
Compare
opentelemetry.metrics | ||
opentelemetry.trace | ||
opentelemetry.util.loader |
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.
Argh, sorry for the mismerge. --> #138
Change return type "unknow" to HttpTextFormat for getHttpTextFormat Change return type "unknow" to BinaryFormat for getBinaryFormat Close open-telemetry#124 open-telemetry#123 Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
Ensure that type info is picked up from installed package.
This required moving all top-level modules to a sub-package, to not
create collisions with py.typed marker files.
See https://www.python.org/dev/peps/pep-0561/#packaging-type-information