-
Notifications
You must be signed in to change notification settings - Fork 10
feat: Fixed mypy issues, updated test vicinity hub repo #61
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
Conversation
Codecov ReportAttention: Patch coverage is
|
stephantul
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mixin doesn't need an init, that's what makes it a mixin. It's a bit difficult to type, but adding an init is probably not the best way to go.
stephantul
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comments
Refactored the hub functionality a bit. It didn't pass mypy (I forgot that it didn't run in CI), and while fixing mypy issues I made some changes to make it more aligned with how we handle optional dependencies in Model2Vec. Biggest change is that it's no longer a mixin, since the typing became really nasty when I tried to keep it a mixin, and I think it can just be functions like this.