NumPy 1.26.4 is a maintenance release that fixes bugs and regressions
discovered after the 1.26.3 release. The Python versions supported by
this release are 3.9-3.12. This is the last planned release in the
1.26.x series.
Contributors
A total of 13 people contributed to this release. People with a "+" by
their names contributed a patch for the first time.
Charles Harris
Elliott Sales de Andrade
Lucas Colley +
Mark Ryan +
Matti Picus
Nathan Goldbaum
Ola x Nilsson +
Pieter Eendebak
Ralf Gommers
Sayed Adel
Sebastian Berg
Stefan van der Walt
Stefano Rivera
Pull requests merged
A total of 19 pull requests were merged for this release.
Fixed a bug where comments where mistakenly removed along with redundant parentheses
(#4218)
Preview style
Move the hug_parens_with_braces_and_square_brackets feature to the unstable style
due to an outstanding crash and proposed formatting tweaks (#4198)
Fixed a bug where base expressions caused inconsistent formatting of ** in tenary
expression (#4154)
Checking for newline before adding one on docstring that is almost at the line limit
(#4185)
Remove redundant parentheses in case statement if guards (#4214).
Configuration
Fix issue where Black would ignore input files in the presence of symlinks (#4222)
Black now ignores pyproject.toml that is missing a tool.black section when
discovering project root and configuration. Since Black continues to use version
control as an indicator of project root, this is expected to primarily change behavior
for users in a monorepo setup (desirably). If you wish to preserve previous behavior,
simply add an empty [tool.black] to the previously discovered pyproject.toml
(#4204)
Output
Black will swallow any SyntaxWarnings or DeprecationWarnings produced by the ast
module when performing equivalence checks (#4189)
Integrations
Add a JSONSchema and provide a validate-pyproject entry-point (#4181)
Fixed a bug where comments where mistakenly removed along with redundant parentheses
(#4218)
Preview style
Move the hug_parens_with_braces_and_square_brackets feature to the unstable style
due to an outstanding crash and proposed formatting tweaks (#4198)
Fixed a bug where base expressions caused inconsistent formatting of ** in tenary
expression (#4154)
Checking for newline before adding one on docstring that is almost at the line limit
(#4185)
Remove redundant parentheses in case statement if guards (#4214).
Configuration
Fix issue where Black would ignore input files in the presence of symlinks (#4222)
Black now ignores pyproject.toml that is missing a tool.black section when
discovering project root and configuration. Since Black continues to use version
control as an indicator of project root, this is expected to primarily change behavior
for users in a monorepo setup (desirably). If you wish to preserve previous behavior,
simply add an empty [tool.black] to the previously discovered pyproject.toml
(#4204)
Output
Black will swallow any SyntaxWarnings or DeprecationWarnings produced by the ast
module when performing equivalence checks (#4189)
Integrations
Add a JSONSchema and provide a validate-pyproject entry-point (#4181)
#11895: Fix collection on Windows where initial paths contain the short version of a path (for example c:\PROGRA~1\tests).
#11953: Fix an IndexError crash raising from getstatementrange_ast.
#12021: Reverted a fix to [--maxfail]{.title-ref} handling in pytest 8.0.0 because it caused a regression in pytest-xdist whereby session fixture teardowns may get executed multiple times when the max-fails is reached.
8.0.1
pytest 8.0.1 (2024-02-16)
Bug Fixes
#11875: Correctly handle errors from getpass.getuser{.interpreted-text role="func"} in Python 3.13.
#11879: Fix an edge case where ExceptionInfo._stringify_exception could crash pytest.raises{.interpreted-text role="func"}.
#11906: Fix regression with pytest.warns{.interpreted-text role="func"} using custom warning subclasses which have more than one parameter in their [__init__]{.title-ref}.
#11907: Fix a regression in pytest 8.0.0 whereby calling pytest.skip{.interpreted-text role="func"} and similar control-flow exceptions within a pytest.warns(){.interpreted-text role="func"} block would get suppressed instead of propagating.
#11929: Fix a regression in pytest 8.0.0 whereby autouse fixtures defined in a module get ignored by the doctests in the module.
#11937: Fix a regression in pytest 8.0.0 whereby items would be collected in reverse order in some circumstances.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the all-dependencies group with 7 updates:
3.8.2
3.8.3
1.26.3
1.26.4
24.1.1
24.2.0
24.1.17
24.2.6
6.97.4
6.98.15
3.6.0
3.6.2
8.0.0
8.0.2
Updates
matplotlib
from 3.8.2 to 3.8.3Release notes
Sourced from matplotlib's releases.
Commits
9e18a34
REL: v3.8.3bd96955
Release prep v3.8.33ebebc7
Fix merge conflicts from v3.8.2-doc8fff5b1
Merge pull request #27790 from meeseeksmachine/auto-backport-of-pr-27785-on-v...c21a93f
Merge pull request #27789 from meeseeksmachine/auto-backport-of-pr-27756-on-v...ea407e1
Backport PR #27785: FIX: be careful about communicating with subprocess2efbf7e
Backport PR #27756: Add protections against infinite loop in bezier calculations95b5eb4
Merge pull request #27779 from ksunden/ci_backports8cd2c91
Merge pull request #27778 from meeseeksmachine/auto-backport-of-pr-27773-on-v...bef02fa
Bump the actions group with 2 updatesUpdates
numpy
from 1.26.3 to 1.26.4Release notes
Sourced from numpy's releases.
... (truncated)
Commits
9815c16
Merge pull request #25770 from charris/prepare-1.26.4114ed25
REL: Prepare for the NumPy 1.26.4 release2fae4d3
Merge pull request #25323 from stefanor/import-asstrce89a0a
Merge pull request #25756 from charris/backport-24711f62dfc6
Merge pull request #25755 from charris/backport-25709fee88ab
BUG: Fix np.quantile([Fraction(2,1)], 0.5) (#24711)659be68
MAINT: Include header defining backtrace837cd38
Merge pull request #25748 from rgommers/unvendor-mesonpythonf984240
CI: upgrade cibuildwheel from 2.16.4 to 2.16.5 [wheel build]3548f9d
BLD: unvendor meson-python [wheel build]Updates
black
from 24.1.1 to 24.2.0Release notes
Sourced from black's releases.
Changelog
Sourced from black's changelog.
Commits
6fdf8a4
Prepare release 24.2.0 (#4226)8af4394
fix: Don't remove comments along with parens (#4218)35e9776
Bump pre-commit/action from 3.0.0 to 3.0.1 (#4225)23dfc5b
Fix ignoring input files for symlink reasons (#4222)a201003
Simplify check for symlinks that resolve outside root (#4221)dab37a6
Remove redundant parentheses incase
statementif
guards (#4214)32230e6
fix: bug where the doublestar operation had inconsistent formatting. (#4154)7edb50f
fix: additional newline added to docstring when the previous line length is l...3e80de3
Bump furo from 2023.9.10 to 2024.1.29 in /docs (#4211)a08b480
Bump pypa/cibuildwheel from 2.16.4 to 2.16.5 (#4212)Updates
flake8-bugbear
from 24.1.17 to 24.2.6Release notes
Sourced from flake8-bugbear's releases.
Commits
26096e4
Update CHANGES + move to version 24.2.6 to release82357df
feat(b038): Change B038 to B909 and make it optional (#456)5c3f0bd
Remove decorators named validator and root_validator from B902 checks (#459)64fcdfd
Pre commit rst check (#458)58fb4fb
[pre-commit.ci] pre-commit autoupdate (#457)Updates
hypothesis
from 6.97.4 to 6.98.15Commits
f1fd1a4
Bump hypothesis-python version to 6.98.15 and update changelog164c4f0
Merge pull request #3901 from honno/array-api-20231bdd5fc
Address review comments9457197
Bump hypothesis-python version to 6.98.14 and update changelog3745775
Merge pull request #3902 from fm4v/stateful-better-namescd51b85
Print original bundle variable names in stateful mode37d2e1d
AddRELEASE.rst
79be205
Remove/clarify references tonumpy.array_api
4dc3de8
Add support for2023.12
inextra.array_api
1be5544
Bump hypothesis-python version to 6.98.13 and update changelogUpdates
pre-commit
from 3.6.0 to 3.6.2Release notes
Sourced from pre-commit's releases.
Changelog
Sourced from pre-commit's changelog.
Commits
e525726
v3.6.23187538
Merge pull request #3130 from pre-commit/golang-build-during-commit-a61d9c95
fix building golang hooks duringcommit --all
15bd0c7
v3.6.192678c3
Merge pull request #3126 from pre-commit/crlf-only-diff032d8e2
staged_files_only can handle a crlf-only diff7384838
Merge pull request #3110 from untitaker/pythonexecutable96e0712
[pre-commit.ci] auto fixes from pre-commit.com hooks3388e2d
Pop PYTHONEXECUTABLE10f8853
Merge pull request #3107 from pre-commit/pre-commit-ci-update-configUpdates
pytest
from 8.0.0 to 8.0.2Release notes
Sourced from pytest's releases.
Commits
31afeeb
Prepare release version 8.0.21b00a2f
Merge pull request #12025 from pytest-dev/backport-12022-to-8.0.xff2f66d
[8.0.x] Revert "Fix teardown error reporting when--maxfail=1
(#11721)"8a8eed6
[8.0.x] Fix collection of short paths on Windows (#12024)74346f0
[8.0.x] Allow Sphinx 7.x (#12005)b7657b4
[8.0.x] Disallow Sphinx 6 and 7 (#12001)feb7c5e
Merge pull request #11999 from pytest-dev/backport-11996-to-8.0.x0909655
[8.0.x] code: fixIndexError
crash ingetstatementrange_ast
68524d4
Merge pull request #11993 from pytest-dev/release-8.0.1d7d320a
Prepare release version 8.0.1Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show