Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.2.1
->5.3.4
1.1.8
->1.2.1
1.0.1
->1.10.0
1.24.2
->1.26.4
7.2.1
->7.4.4
Release Notes
astropy/astropy (astropy)
v5.3.4
Compare Source
==========================
Bug Fixes
astropy.io.misc
^^^^^^^^^^^^^^^
astropy.io.misc.yaml
sodump()` with a numpy object array or
load()with YAML representing a Numpy object array both raise
TypeError``. This prevents problems like a segmentation fault. [#15373]astropy.io.votable
^^^^^^^^^^^^^^^^^^
convert_to_writable_filelike
whereGzipFile
was notclosed properly. [#15359]
astropy.units
^^^^^^^^^^^^^
In VOUnit, the spaces around the slash were removed in the formatting of
fractions, and fractional powers now also use the "**" operator. [#15282]
We now ensure that the unit
u.cgs.cm
is just an alias ofu.si.cm
,instead of a redefinition. This ensures that
u.Unit("cm") / u.cm
will reliably cancel to dimensionless (instead of some "cm / cm"). [#15368]
astropy.utils
^^^^^^^^^^^^^
Masked
,np.ptp
and the.ptp()
method now properly account forthe mask, ensuring the result is identical to subtracting the maximum and
minimum (with the same arguments). [#15380]
Other Changes and Additions
Compatibility with Python 3.12. [#14784]
Replaced the URL of
IETF_LEAP_SECOND_URL
because the original is nowdefunct and IETF now defers to IANA for such look-up. [#15421]
v5.3.3
Compare Source
===========================
Bug Fixes
astropy.coordinates
^^^^^^^^^^^^^^^^^^^
TransformGraph.to_dot_graph()
now throws an exception for invalidsavelayout
.astropy.cosmology
^^^^^^^^^^^^^^^^^
w0wzCDM
functions ininv_efunc
has been corrected to 3, from -3. [#15224]astropy.modeling
^^^^^^^^^^^^^^^^
filter_non_finite
keyword argument in a fitter call. Now when
filter_non_finite
is True,non-finite weights will also be filtered to prevent crashes in
LevMarLSQFitter
. [#15215]astropy.units
^^^^^^^^^^^^^
astropy.units.Quantity
's implementation ofnumpy.nanmedian()
,where for Numpy >= 1.25 an exception was raised for some array shapes and axis
combinations. [#15228]
Other Changes and Additions
v5.3.2
Compare Source
==========================
Bug Fixes
astropy.coordinates
^^^^^^^^^^^^^^^^^^^
-OO
flag. [#15037]astropy.nddata
^^^^^^^^^^^^^^
NDData
without masks or units. [#15082]astropy.units
^^^^^^^^^^^^^
np.power()
for instances ofQuantity
toallow any array as the second operand if all its elements have the same value. [#15101]
v5.3.1
Compare Source
==========================
Bug Fixes
astropy.cosmology
^^^^^^^^^^^^^^^^^
wowzCDM.de_density_scale
has been corrected to 3, from -3. [#14991]astropy.io.fits
^^^^^^^^^^^^^^^
Fix crash when a PrimaryHDU has a GROUPS keyword with a non-boolean value (i.e.
not a random-groups HDU). [#14998]
Fixed a bug that caused
Cutout2D
to not work correctly withCompImageHDU.section
[#14999]Fixed a bug that caused compressed images with TFORM missing the optional '1' prefix to not be readable. [#15001]
astropy.modeling
^^^^^^^^^^^^^^^^
astropy.nddata
^^^^^^^^^^^^^^
NDData.mask
, plus a fixfor arithmetic between masked and unmasked
NDData
objects. [#14995]astropy.table
^^^^^^^^^^^^^
order of rows within groups to not match the original table order when an indexed table
was grouped. [#14907]
astropy.units
^^^^^^^^^^^^^
v5.3
Compare Source
==========================
Bug Fixes
astropy.io.misc
^^^^^^^^^^^^^^^
astropy.io.misc.yaml
sodump()` with a numpy object array or
load()with YAML representing a Numpy object array both raise
TypeError``. This prevents problems like a segmentation fault. [#15373]astropy.io.votable
^^^^^^^^^^^^^^^^^^
convert_to_writable_filelike
whereGzipFile
was notclosed properly. [#15359]
astropy.units
^^^^^^^^^^^^^
In VOUnit, the spaces around the slash were removed in the formatting of
fractions, and fractional powers now also use the "**" operator. [#15282]
We now ensure that the unit
u.cgs.cm
is just an alias ofu.si.cm
,instead of a redefinition. This ensures that
u.Unit("cm") / u.cm
will reliably cancel to dimensionless (instead of some "cm / cm"). [#15368]
astropy.utils
^^^^^^^^^^^^^
Masked
,np.ptp
and the.ptp()
method now properly account forthe mask, ensuring the result is identical to subtracting the maximum and
minimum (with the same arguments). [#15380]
Other Changes and Additions
Compatibility with Python 3.12. [#14784]
Replaced the URL of
IETF_LEAP_SECOND_URL
because the original is nowdefunct and IETF now defers to IANA for such look-up. [#15421]
v5.2.2
Compare Source
==========================
Bug Fixes
astropy.io.ascii
^^^^^^^^^^^^^^^^
km/s/Mpc
now parse correctly as being equal tokm/(s.Mpc)
. [#14369]astropy.io.fits
^^^^^^^^^^^^^^^
FITSDiff
when table contains a VLA column with the Q type. [#14539]astropy.table
^^^^^^^^^^^^^
QTable
when aQuantity
input column is present and theunits
argument modifies the unit of that column. This now works as expected wherepreviously this caused an exception. [#14357]
astropy.units
^^^^^^^^^^^^^
km/s/Mpc
now parsecorrectly as being equal to
km/(s.Mpc)
. [#14369]astropy.wcs
^^^^^^^^^^^
not work correctly under certain conditions if they did not have
world_n_dim
and
pixel_n_dim
defined on them. [#14495]esheldon/fitsio (fitsio)
v1.2.1
Compare Source
Changes
Bug Fixes
v1.2.0
Compare Source
Changes
Bug Fixes
v1.1.10
Compare Source
Changes
Bug Fixes
v1.1.9
Compare Source
Changes
Bug Fixes
- Bug updating header string cards was adding new key rather than updating
- Bug gzip compression when not using quantization
python/mypy (mypy)
v1.10.0
Compare Source
v1.9.0
Compare Source
v1.8.0
Compare Source
v1.7.1
Compare Source
v1.7.0
Compare Source
v1.6.1
Compare Source
v1.6.0
Compare Source
v1.5.1
Compare Source
v1.5.0
Compare Source
v1.4.1
Compare Source
v1.4.0
Compare Source
v1.3.0
Compare Source
v1.2.0
Compare Source
v1.1.1
Compare Source
Monday, 6 March 2023
We’ve just uploaded mypy 1.1.1 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:
You can read the full documentation for this release on Read the Docs.
Support for `dataclass_transform``
This release adds full support for the dataclass_transform decorator defined in PEP 681. This allows decorators, base classes, and metaclasses that generate a __init__ method or other methods based on the properties of that class (similar to dataclasses) to have those methods recognized by mypy.
This was contributed by Wesley Collin Wright.
Dedicated Error Code for Method Assignments
Mypy can’t safely check all assignments to methods (a form of monkey patching), so mypy generates an error by default. To make it easier to ignore this error, mypy now uses the new error code method-assign for this. By disabling this error code in a file or globally, mypy will no longer complain about assignments to methods if the signatures are compatible.
Mypy also supports the old error code assignment for these assignments to prevent a backward compatibility break. More generally, we can use this mechanism in the future if we wish to split or rename another existing error code without causing backward compatibility issues.
This was contributed by Ivan Levkivskyi (PR 14570).
Fixes to Crashes
Fixes to Cache Corruption
Mypyc Fixes and Improvements
Fixes to Detecting Undefined Names (used-before-def)
Stubgen Improvements
Stubgen is a tool for automatically generating draft stubs for libraries.
Stubtest Improvements
Stubtest is a tool for testing that stubs conform to the implementations.
Changes to Error Reporting and Messages
typing_extensions
if definition is not in typing (Shantanu, PR 14591)Other Fixes and Improvements
Typeshed Updates
Typeshed is now modular and distributed as separate PyPI packages for everything except the standard library stubs. Please see git log for full list of typeshed changes.
Acknowledgements
Thanks to all mypy contributors who contributed to this release:
We’d also like to thank our employer, Dropbox, for funding the mypy core team.
Posted by Max Murin
numpy/numpy (numpy)
v1.26.4
Compare Source
NumPy 1.26.4 Release Notes
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.
Pull requests merged
A total of 19 pull requests were merged for this release.
numpy.array_api
: fixlinalg.cholesky
upper decomp...newaxis
to__all__
innumpy.array_api
__config__.py
Checksums
MD5
SHA256
v1.26.3
Compare Source
v1.26.2
: 1.26.2 releaseCompare Source
NumPy 1.26.2 Release Notes
NumPy 1.26.2 is a maintenance release that fixes bugs and regressions
discovered after the 1.26.1 release. The 1.26.release series is the last
planned minor release series before NumPy 2.0. The Python versions
supported by this release are 3.9-3.12.
Contributors
A total of 13 people contributed to this release. People with a "+" by
their names contributed a patch for the first time.
Pull requests merged
A total of 25 pull requests were merged for this release.
import_array()
noexcept
to shuffle helpersallow-noblas
option to true.np.dtype
to itself doesn't crashChecksums
MD5
SHA256
v1.26.1
Compare Source
NumPy 1.26.1 Release Notes
NumPy 1.26.1 is a maintenance release that fixes bugs and regressions
discovered after the 1.26.0 release. In addition, it adds new
functionality for detecting BLAS and LAPACK when building from source.
Highlights are:
The 1.26.release series is the last planned minor release series before
NumPy 2.0. The Python versions supported by this release are 3.9-3.12.
Build system changes
Improved BLAS/LAPACK detection and control
Auto-detection for a number of BLAS and LAPACK is now implemented for
Meson. By default, the build system will try to detect MKL, Accelerate
(on macOS >=13.3), OpenBLAS, FlexiBLAS, BLIS and reference BLAS/LAPACK.
Support for MKL was significantly improved, and support for FlexiBLAS
was added.
New command-line flags are available to further control the selection of
the BLAS and LAPACK libraries to build against.
To select a specific library, use the config-settings interface via
pip
orpypa/build
. E.g., to selectlibblas
/liblapack
, use:This works not only for the libraries named above, but for any library
that Meson is able to detect with the given name through
pkg-config
orCMake.
Besides
-Dblas
and-Dlapack
, a number of other new flags areavailable to control BLAS/LAPACK selection and behavior:
-Dblas-order
and-Dlapack-order
: a list of library names tosearch for in order, overriding the default search order.
-Duse-ilp64
: if set totrue
, use ILP64 (64-bit integer) BLAS andLAPACK. Note that with this release, ILP64 support has been extended
to include MKL and FlexiBLAS. OpenBLAS and Accelerate were supported
in previous releases.
-Dallow-noblas
: if set totrue
, allow NumPy to build with itsinternal (very slow) fallback routines instead of linking against an
external BLAS/LAPACK library. The default for this flag may be
changed to ``true`` in a future 1.26.x release, however for
1.26.1 we'd prefer to keep it as ``false`` because if failures
to detect an installed library are happening, we'd like a bug
report for that, so we can quickly assess whether the new
auto-detection machinery needs further improvements.
-Dmkl-threading
: to select the threading layer for MKL. There arefour options:
seq
,iomp
,gomp
andtbb
. The default isauto
, which selects from those four as appropriate given theversion of MKL selected.
-Dblas-symbol-suffix
: manually select the symbol suffix to use forthe library - should only be needed for linking against libraries
built in a non-standard way.
New features
numpy._core
submodule stubsnumpy._core
submodule stubs were added to provide compatibility withpickled arrays created using NumPy 2.0 when running Numpy 1.26.
Contributors
A total of 13 people contributed to this release. People with a "+" by
their names contributed a patch for the first time.
Pull requests merged
A total of 20 pull requests were merged for this release.
-march=native
...use-compute-credits
for Cirrus.NumpyUnpickler
for backportingnumpy._core
stubs. RemoveNumpyUnpickler
Checksums
MD5
SHA256
Configuration
📅 Schedule: Branch creation - "every 4th week on Thursday before 10am" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.