Skip to content

Conversation

@sbrugman
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings November 24, 2025 16:18
@sbrugman sbrugman added the fix Something isn't working label Nov 24, 2025
@sbrugman sbrugman enabled auto-merge (squash) November 24, 2025 16:19
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for static methods in Input, Output, and IO classes by removing the validation that previously rejected staticmethod decorators on load() and save() methods.

Key changes:

  • Removed staticmethod validation checks that raised "Load/Save method cannot be static" errors
  • Refactored the save() method parameter validation logic to handle both instance methods and staticmethods
  • Added test coverage for staticmethod usage in Input, Output, and IO classes

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/ordeq/src/ordeq/_io.py Removed staticmethod checks and refactored save() parameter validation to support staticmethods
packages/ordeq/tests/resources/io/io_static.py New test demonstrating staticmethod usage with Input, Output, and IO classes
packages/ordeq/tests/snapshots/io/io_static.snapshot.md Snapshot showing successful execution of staticmethod tests
packages/ordeq/tests/snapshots/io/io_static_load.snapshot.md Removed error output that previously rejected staticmethod in Input
packages/ordeq/tests/snapshots/io/io_static_save.snapshot.md Removed error output that previously rejected staticmethod in Output
packages/ordeq/tests/snapshots/typing.snapshot.md Updated source file count from 284 to 285 files checked

@sbrugman sbrugman disabled auto-merge November 24, 2025 16:25
@sbrugman sbrugman enabled auto-merge (squash) November 24, 2025 16:26
@sbrugman sbrugman force-pushed the ordeq-staticmethods branch from 325f15d to 93c4979 Compare November 24, 2025 16:27
@sbrugman sbrugman merged commit 184dadb into main Nov 24, 2025
40 checks passed
@sbrugman sbrugman deleted the ordeq-staticmethods branch November 24, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants