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

[python] Is it possible to use absolutely import inner Python SDK instead of relative import #5591

Open
msyyc opened this issue Jan 14, 2025 · 1 comment
Assignees
Labels
emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Comments

@msyyc
Copy link
Contributor

msyyc commented Jan 14, 2025

Currently we always use relative import inner Python SDK (e.g. here), which needs complicated implementation logic in python codegen and the logic is not easy to maintain. In comparison, absolute import is very easy to implement and it doesn't influence SDK users. I think it is worth to discuss.

@msyyc msyyc added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Jan 14, 2025
@msyyc msyyc self-assigned this Jan 14, 2025
@msyyc
Copy link
Contributor Author

msyyc commented Jan 14, 2025

I update azure-mgmt-trustedsigning with absolute import manually and it passes all the test : https://github.com/Azure/azure-sdk-for-python/pull/39107/files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:python Issue for the Python client emitter: @typespec/http-client-python
Projects
None yet
Development

No branches or pull requests

1 participant