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 circular imports in knowledge utilities #123

Merged
merged 3 commits into from
Jul 10, 2023

Conversation

sea-bass
Copy link
Owner

@sea-bass sea-bass commented Jul 9, 2023

This PR fixes circular imports in the knowledge utilities by importing from the core modules only in the functions that require it.

It also ensures that Location and Object metadata is always set to a blank dictionary even when nothing has been specified, to prevent runtime errors.

Closes #122

Copy link
Collaborator

@henrygerardmoore henrygerardmoore left a comment

Choose a reason for hiding this comment

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

Tested locally and it fixes the issue, changes LGTM

@henrygerardmoore henrygerardmoore merged commit 0d654c3 into main Jul 10, 2023
4 checks passed
@sea-bass sea-bass deleted the fix-circular-imports branch July 10, 2023 02:50
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.

Circular dependency for resolve_to_object
2 participants