Skip to content

Conversation

KyleSDeveloper
Copy link

This PR introduces the maybe_single utility function to handle optional unwrapping of lists/tuples into a scalar when appropriate.

  • Added supabase/_utils.py with maybe_single implementation.
  • Added tests/test_utils_maybe_single.py with coverage for None, scalars, singleton lists, multi-item lists, and tuples.

All new tests pass.

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