Skip to content

refactor: Use class name in GradVac and QuadprogProjector repr - #812

Merged
ValerianRey merged 2 commits into
mainfrom
refactor/repr-class-name
Oct 7, 2026
Merged

ValerianRey merged 2 commits into
mainfrom
refactor/repr-class-name

Conversation

@ValerianRey

Copy link
Copy Markdown
Member

GradVac.__repr__ and QuadprogProjector.__repr__ hard-coded the class name. They now use self.__class__.__name__ like the other classes, so subclasses get their own name (e.g. MyGradVac(beta=0.5, eps=1e-08) instead of GradVac(...)).

The reprs of GradVac and QuadprogProjector themselves are unchanged, and the GradVac, dual cone, UPGrad and DualProj tests pass.

🤖 Generated with Claude Code

GradVac.__repr__ and QuadprogProjector.__repr__ hard-coded the class name.
They now use `self.__class__.__name__`, like the other classes, so that
subclasses get their own name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ValerianRey ValerianRey added package: aggregation cc: refactor Conventional commit type for any refactoring, not user-facing, and not typing or perf improvements package: linalg labels Oct 7, 2026
@github-actions github-actions Bot changed the title Use class name in GradVac and QuadprogProjector repr refactor: Use class name in GradVac and QuadprogProjector repr Oct 7, 2026
@ValerianRey
ValerianRey marked this pull request as ready for review October 7, 2026 16:13
@ValerianRey
ValerianRey enabled auto-merge (squash) October 7, 2026 16:13
@ValerianRey
ValerianRey merged commit ec23448 into main Oct 7, 2026
18 checks passed
@ValerianRey
ValerianRey deleted the refactor/repr-class-name branch October 7, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cc: refactor Conventional commit type for any refactoring, not user-facing, and not typing or perf improvements package: aggregation package: linalg

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant