Skip to content

fix(types): satisfy TrainerPort protocol in the class-weight wrapper#19

Merged
ancongui merged 1 commit into
mainfrom
fix/pyright-typecheck
Jul 5, 2026
Merged

fix(types): satisfy TrainerPort protocol in the class-weight wrapper#19
ancongui merged 1 commit into
mainfrom
fix/pyright-typecheck

Conversation

@ancongui

@ancongui ancongui commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Repairs the pyright failures present in main after PR #17 (the branch's typecheck fix postdated the merge snapshot): the class-weight wrapper sets name as a plain attribute (protocol data members are invariant), and the optional supports_dataset guard is read via getattr. Pyright: 0 errors, suite green.

@ancongui ancongui merged commit 4a70afa into main Jul 5, 2026
4 checks passed
@ancongui ancongui deleted the fix/pyright-typecheck branch July 5, 2026 14:28
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.

1 participant