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

Fix redundant import #2019

Merged
merged 2 commits into from
May 10, 2022
Merged

Fix redundant import #2019

merged 2 commits into from
May 10, 2022

Conversation

tgaddair
Copy link
Collaborator

No description provided.

@@ -7,7 +7,7 @@
from torch import nn, Tensor

from ludwig.api import LudwigModel
from ludwig.combiners.combiners import BaseCombinerConfig, Combiner, register_combiner
from ludwig.combiners.combiners import Combiner, register_combiner
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we delete line 18 instead?

Copy link
Collaborator

Choose a reason for hiding this comment

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

No, this is the correct change - BaseCombinerConfig is not exposed by ludwig.combiners.combiners

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I liked line 18 more because it's the true location of that class, as opposed to an indirect import.

@tgaddair tgaddair merged commit 4294d87 into master May 10, 2022
@tgaddair tgaddair deleted the fix-imports branch May 10, 2022 22:40
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.

None yet

3 participants