Skip to content

Conversation

@r4victor
Copy link
Collaborator

Part of #2372

This PR moves optional Compute methods to ComputeWith* feature classes. This makes it explicit which methods are required for different features and also allows building BACKENDS_WITH_* lists dynamically instead of hardcoding them.

Notes:

  • Compute instances now need to be type-narrowed like assert isinstance(compute, ComputeWithPlacementGroupSupport). This is still better than previous implicit assumption about method being implemented.
  • BACKENDS_WITH_* lists now contain only available backend types. This does not affect any behavior except for error messages that return supported backend types. Errors are clarified to return available backend types.

@r4victor r4victor requested review from jvstme and un-def March 10, 2025 08:08
@r4victor r4victor merged commit 3f54a50 into master Mar 11, 2025
6 checks passed
@r4victor r4victor deleted the issue_2372_backend_features branch March 11, 2025 05:32
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