Skip to content

chore: fill in the missing type annotations in framework - #2884

Open
jorenham wants to merge 2 commits into
canonical:mainfrom
jorenham:typing/framework/coverage
Open

jorenham wants to merge 2 commits into
canonical:mainfrom
jorenham:typing/framework/coverage

Conversation

@jorenham

@jorenham jorenham commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

This increases public type coverage (pyrefly coverage check --public only) from 85.74% to 88.39% (+2.65%), and ops.framework itself is now 100% covered. This also adds docstrings for the Instance attributes of some of the previously unannotated ops.framework classes, which will show up in the reference docs. Additionally, this tightens some annotations in the rich comparison dunders, and explicitly marks type aliases as TypeAlias.

@tonyandrewmeyer tonyandrewmeyer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks! This looks good - one annotation that I think is a slip (discard), and a question about the eq signatures that also applies to #2887, so it'd be good to settle it once.

Comment thread ops/framework.py Resolved
Comment thread ops/framework.py Resolved
Comment thread ops/framework.py Resolved
Comment thread ops/framework.py Resolved
Comment thread ops/framework.py Resolved
Comment thread ops/framework.py Resolved
@jorenham
jorenham force-pushed the typing/framework/coverage branch from b45bdfa to 438a0d6 Compare November 13, 2026 00:20

This branch has not been deployed

No deployments
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.

3 participants