Repository navigation
fix(http-httpx): export HttpxRequestAdapter and KiotaClientFactory from kiota_http package - #825
Hardik K (hardikkaurani) wants to merge 2 commits into
Conversation
…om kiota_http package
|
I've opened this PR for The PR also fixes a duplicate-word typo in the package README and adds test coverage for the new exports. Whenever convenient, could you please take a look? Thanks for your time! |
|
|
||
| __version__ = VERSION | ||
|
|
||
| __all__ = [ |
There was a problem hiding this comment.
should the observability options be in there?
There was a problem hiding this comment.
Yes, absolutely! I've added ObservabilityOptions to packages/http/httpx/kiota_http/__init__.py and included it in the explicit __all__ list in commit [d75e9ff](d75e9ff).
Callers can now import ObservabilityOptions directly from the top-level kiota_http package, alongside HttpxRequestAdapter and KiotaClientFactory.
|
|
I have updated the PR in commit d75e9ff addressing the review feedback:
Ready for your review! Thank you! |
|
Vincent Biret (@baywet) Thanks a lot. So happy to be the part of contributors list. Learnt a lot from these code bases. |




Description
HttpxRequestAdapterandKiotaClientFactoryinpackages/http/httpx/kiota_http/__init__.pyand explicitly declare__all__.kiota_httpcontains apy.typedmarker (PEP 561), declaring__all__enables typed consumer applications and IDEs to import directly from the top-level package (from kiota_http import HttpxRequestAdapter, KiotaClientFactory) withoutreportPrivateImportUsageor typing errors.packages/http/httpx/README.md("to to make HTTP requests").packages/http/httpx/tests/test_typing.pyvalidating package exports.