Skip to content

DEP: remove deprecated 'full' and 'economic' modes from numpy.linalg.qr#31387

Open
AshutoshDevpura wants to merge 2 commits into
numpy:mainfrom
AshutoshDevpura:maint/remove-deprecated-qr-modes
Open

DEP: remove deprecated 'full' and 'economic' modes from numpy.linalg.qr#31387
AshutoshDevpura wants to merge 2 commits into
numpy:mainfrom
AshutoshDevpura:maint/remove-deprecated-qr-modes

Conversation

@AshutoshDevpura
Copy link
Copy Markdown

@AshutoshDevpura AshutoshDevpura commented May 5, 2026

PR summary

Closes gh-11521 (partial)

The 'full', 'f', 'economic', and 'e' modes of numpy.linalg.qr
were deprecated in NumPy 1.8.0 (2013-04-01). This PR removes them now
that we are at v2.5.0.dev0.

Changes:

  • Remove DeprecationWarning branches for 'full'/'f' and 'economic'/'e'
  • Raise ValueError for these modes instead
  • Remove the mode == 'economic' return branch
  • Remove unused import warnings
  • Update docstring to remove references to deprecated modes
  • Update test_deprecations.py to expect ValueError instead of DeprecationWarning
  • Add release note in doc/release/upcoming_changes/

First time committer introduction

Hi! I'm Ashutosh, a Data Scientist working on ML systems (XGBoost, LSTM)
for credit risk modeling. I contribute to open source ML libraries in my
spare time.

AI Disclosure

I used Claude (AI assistant) to help navigate the codebase and understand
where the deprecated code lived. The actual changes, removing the warning
branches, updating the docstring, fixing the tests, and adding the release
note were performed/reviewed and understood by me before submitting.

@jorenham jorenham changed the title MAINT: remove deprecated 'full' and 'economic' modes from numpy.linalg.qr DEP: remove deprecated 'full' and 'economic' modes from numpy.linalg.qr May 5, 2026
@jorenham
Copy link
Copy Markdown
Member

jorenham commented May 5, 2026

Please fill in the AI disclosure from the PR template that you ignored

@AshutoshDevpura
Copy link
Copy Markdown
Author

Updated the PR description with the AI disclosure. Thanks for the heads up!

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.

DEP: remove code with expired deprecations (tracking issue)

2 participants