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: import BaseInterfaceModel from correct location #115

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

antazoey
Copy link
Member

What I did

It is only incidental that this even works, all the basemodel stuff is defined in ape.utils.basemodel and has been since its existence. Something in ape.types.__init__ is using BaseInterfaceModel which is why it was working.

It is not even listed in the __all__ https://github.com/ApeWorX/ape/blob/v0.8.17/src/ape/types/__init__.py#L573 so I am surprised you don't at least get static import warnings.

How I did it

Import from the correct spot.

How to verify it

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@fubuloubu fubuloubu merged commit 67d50c3 into ApeWorX:main Oct 25, 2024
4 checks passed
@fubuloubu
Copy link
Member

Is this critical to release?

@antazoey antazoey deleted the fix/import branch October 25, 2024 13:02
@antazoey
Copy link
Member Author

Is this critical to release?

No, and I am even thinking on exporting the base-model stuff from the root of ape.types now because of this..
Thinking of making that the official way to do it in 0.9.

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.

2 participants