Skip to content

Move skip_backend deprecation warning to skip_backend - #339

Merged
hameerabbasi merged 1 commit into
Quansight-Labs:masterfrom
Deepak-Kambala:fix-skip-backend-deprecation-warning
Oct 22, 2026
Merged

hameerabbasi merged 1 commit into
Quansight-Labs:masterfrom
Deepak-Kambala:fix-skip-backend-deprecation-warning

Conversation

@Deepak-Kambala

Copy link
Copy Markdown

The deprecation warning for uarray.skip_backend is currently emitted from set_backend(), causing users of the supported backend-selection context manager to receive an unrelated deprecation warning.

Move the warning to skip_backend() and set stacklevel=2 so the warning identifies the caller. Add regression tests verifying that set_backend() does not emit the warning and that skip_backend() still does.

Validation:

  • Focused regression tests: 2 passed.
  • Full uarray test suite: 23 passed.
  • SciPy FFT backend tests with DeprecationWarning treated as errors: 46 passed.
  • git diff --check: passed.

The six deprecation warnings in the full uarray suite are expected from existing skip_backend() calls and correctly point to their call sites.

@hameerabbasi
hameerabbasi merged commit 06c0ce0 into Quansight-Labs:master Oct 22, 2026
10 checks passed
@hameerabbasi

Copy link
Copy Markdown
Collaborator

Thanks for the contribution, @Deepak-Kambala!

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.

2 participants