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

Reduce indirection by removing Registry._resolve #52

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

bcmills
Copy link
Contributor

@bcmills bcmills commented Oct 4, 2024

Registry._resolve() was a thin wrapper around model.resolve_value as a method rather than a free function. It was undocumented and only called in one place, and that place already imported identifiers from the model module.

This simplifies the code by having the caller use resolve_value directly.

Registry._resolve() was a thin wrapper around model.resolve_value as a
method rather than a free function. It was undocumented and only
called in one place, and that place already imported identifiers from
the model module.

This simplifies the code by having the caller use resolve_value
directly.
@bcmills bcmills mentioned this pull request Oct 4, 2024
2 tasks
@bcmills bcmills merged commit 0d4de48 into master Oct 7, 2024
4 checks passed
@bcmills bcmills deleted the _resolve branch October 16, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants