Skip to content

Conversation

@Pringled
Copy link
Member

@Pringled Pringled commented Feb 28, 2025

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.

@Pringled Pringled requested a review from stephantul February 28, 2025 09:29
@codecov-commenter
Copy link

codecov-commenter commented Feb 28, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
vicinity/vicinity.py 50.00% 5 Missing ⚠️
Files with missing lines Coverage Δ
vicinity/vicinity.py 95.42% <50.00%> (-2.25%) ⬇️

Copy link
Contributor

@stephantul stephantul left a 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.

@Pringled Pringled requested a review from stephantul February 28, 2025 11:54
Copy link
Contributor

@stephantul stephantul left a comment

Choose a reason for hiding this comment

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

Small comments

@Pringled Pringled merged commit 07f0b8f into main Mar 2, 2025
5 checks passed
@Pringled Pringled deleted the small-updates branch March 2, 2025 14:06
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.

4 participants