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 edge case bug in layered models. #123

Merged
merged 5 commits into from
Sep 14, 2022
Merged

Fix edge case bug in layered models. #123

merged 5 commits into from
Sep 14, 2022

Conversation

aadyotb
Copy link
Contributor

@aadyotb aadyotb commented Sep 12, 2022

The current implementation of layered models fails if config.model is None but model is not None when initializing a layered model. This commit fixes the issue by ensuring that __new__() does not implicitly update the config object when setting model's class. We also add test coverage for this use case.

The current implementation of layered models fails if config.model is
None, but model is non-None when initializing a layered model. This
commit fixes the issue by ensuring that __new__() does not implicitly
update the config object when setting model's class.
@aadyotb aadyotb changed the title Make _resolve_args() stateless for layered models. Fix edge case bug in layered models. Sep 13, 2022
@aadyotb aadyotb force-pushed the layers_fix branch 2 times, most recently from 5e32093 to 1ca2e70 Compare September 13, 2022 23:41
@aadyotb aadyotb merged commit 5f1ffa1 into main Sep 14, 2022
@aadyotb aadyotb deleted the layers_fix branch September 14, 2022 16:56
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

2 participants