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

Refactor code executor namespace #4538

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lspinheiro
Copy link
Collaborator

@lspinheiro lspinheiro commented Dec 4, 2024

Why are these changes needed?

To improve extra module dependency management. This PR only addresses the code_executors namespace and will be followed up by PRs for the other component namespaces.

Related issue number

Part of ##4408

Checks

@lspinheiro lspinheiro requested a review from ekzhu December 4, 2024 09:10
from ._azure_container_code_executor import ACADynamicSessionsCodeExecutor, TokenProvider
from ._docker_code_executor import DockerCommandLineCodeExecutor
from .azure import ACADynamicSessionsCodeExecutor, TokenProvider
from .docker import DockerCommandLineCodeExecutor

__all__ = ["DockerCommandLineCodeExecutor", "TokenProvider", "ACADynamicSessionsCodeExecutor"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do you want to keep this or force imports from the respective extra namespaces?

Copy link
Member

Choose a reason for hiding this comment

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

To prevent problems with optional dependencies I think we need to force the import from the nested module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants