Skip to content

refactor: Add CompliantFrame protocol#3056

Merged
dangotbanned merged 9 commits intomainfrom
compliant-frame
Aug 29, 2025
Merged

refactor: Add CompliantFrame protocol#3056
dangotbanned merged 9 commits intomainfrom
compliant-frame

Conversation

@dangotbanned
Copy link
Member

@dangotbanned dangotbanned commented Aug 29, 2025

What type of PR is this? (check all applicable)

  • 💾 Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • 🔧 Optimization
  • 📝 Documentation
  • ✅ Test
  • 🐳 Other

Related issues

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below

Beyond the changes/fixes here - the main candidate to use it for is in BaseFrame

class BaseFrame(Generic[_FrameT]):
_compliant_frame: Any
_level: Literal["full", "lazy", "interchange"]

Might need some more tweaks first and waiting on (#3016) to land

... but it sure would be nice for the 300ish lines in BaseFrame to have more complete typing 😄

@dangotbanned
Copy link
Member Author

@FBruzzesi I know the lack of this has caused you a few headaches in the past 😉

@dangotbanned dangotbanned marked this pull request as ready for review August 29, 2025 16:07
Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

@dangotbanned dangotbanned merged commit 8aaaca8 into main Aug 29, 2025
34 of 37 checks passed
@dangotbanned dangotbanned deleted the compliant-frame branch August 29, 2025 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants