Skip to content

Minor insight tweak & cleanups #55

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

Merged
merged 2 commits into from
Jun 20, 2025
Merged

Minor insight tweak & cleanups #55

merged 2 commits into from
Jun 20, 2025

Conversation

rbro112
Copy link
Member

@rbro112 rbro112 commented Jun 20, 2025

Was reviewing #51 and realized the __call__ notation felt awkward (did some reading on it). If anything, IMO we should remove __call__ and replace with an invocation of the instance (DuplicateFilesInsight()(insights_input)), which feels even more awkward.

Instead I renamed it to get_results to make this a bit more understandable without Python callable context IMO and moved base models outside of common.py and removed some Cursor gen'd docs

Copy link
Member Author

rbro112 commented Jun 20, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@rbro112 rbro112 changed the title Minor insight tweak Minor insight tweak & cleanups Jun 20, 2025
All data needed for the insight must be collected during the main analysis phase.
"""

def get_results(self, input: InsightsInput) -> T_co:
Copy link
Member

Choose a reason for hiding this comment

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

nit: could this be something like perform() to indicate that work is being done, get kind of hides that.

Copy link
Member

Choose a reason for hiding this comment

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

e.g. when I implement the image compression insight that becomes more apparent

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, will update to something along those lines

@rbro112 rbro112 merged commit ba4bcef into main Jun 20, 2025
13 checks passed
@rbro112 rbro112 deleted the ryan/minor_insight_tweak branch June 20, 2025 17:08
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