Skip to content

TYP: fix and improve numpy._core.arrayprint #28302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 8, 2025
Merged

Conversation

jorenham
Copy link
Member

@jorenham jorenham commented Feb 8, 2025

backport of numpy/numtype#79


  • add the missing override_repr to numpy.printoptions
  • add the (remaining) missing legacy parameter values to the literal
  • accept non-deprecated usage of the style param in np.array2string, and @deprecate other calls with a style param
  • add the missing __all__ to the module
  • redupe several Literal annotations using TypeAlias
  • remove redundant Any type arguments to np.number subtypes

@jorenham jorenham added the 09 - Backport-Candidate PRs tagged should be backported label Feb 8, 2025
@jorenham jorenham added this to the 2.2.3 release milestone Feb 8, 2025
@charris charris merged commit 9e83252 into numpy:main Feb 8, 2025
71 checks passed
@jorenham jorenham deleted the numtype-79 branch February 8, 2025 19:05
@charris
Copy link
Member

charris commented Feb 8, 2025

Thanks Joren.

@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Feb 8, 2025
charris added a commit to charris/numpy that referenced this pull request Feb 8, 2025
Backports of the following PRs:
    numpy#28295, numpy#28296, numpy#28297, numpy#28298, numpy#28299,
    numpy#28300, numpy#28301, numpy#28302 numpy#28303

Squashed commits of the following:

commit a9267179555caf49c109a13560c3af81b7fc2a7a
Author: jorenham <jhammudoglu@gmail.com>
Date:   Sat Feb 8 16:51:24 2025 +0100

    TYP: stub ``lib._datasource`` and fix ``lib._npyio_impl``

commit 443ae333a12abecfad6faa32a55008d2312c7d92
Author: jorenham <jhammudoglu@gmail.com>
Date:   Sat Feb 8 16:22:58 2025 +0100

    TYP: fix and improve ``numpy._core.arrayprint``

commit 3bf77939042838edb417507ec2099951c7ad804b
Author: jorenham <jhammudoglu@gmail.com>
Date:   Sat Feb 8 15:57:32 2025 +0100

    TYP: stub ``lib.recfunctions``

commit 80319f25c499a2b87eb271a9e7a81bb0ce3e1f85
Author: jorenham <jhammudoglu@gmail.com>
Date:   Sat Feb 8 15:52:10 2025 +0100

    TYP: stub ``lib.introspect``

commit 1d693e9601aaf9f5bb5a915385cc52a0162efcff
Author: jorenham <jhammudoglu@gmail.com>
Date:   Sat Feb 8 15:49:53 2025 +0100

    TYP: stub ``lib.user_array`` and ``lib._user_array_impl``

commit d56f22f263ddf02a01fc15bf576862c51f22addd
Author: jorenham <jhammudoglu@gmail.com>
Date:   Sat Feb 8 15:45:36 2025 +0100

    TYP: stub ``numpy.lib._iotools``

commit ca2024aa706a85a5011c2bb55aba29e5d5da40bd
Author: jorenham <jhammudoglu@gmail.com>
Date:   Sat Feb 8 15:39:59 2025 +0100

    TYP: stub ``numpy._configtool`` and ``numpy._distributor_init``

commit ec7fdc9ca259b4fedfbb88f606818271fed63ee0
Author: jorenham <jhammudoglu@gmail.com>
Date:   Sat Feb 8 15:36:46 2025 +0100

    TYP: stub ``numpy._expired_attrs_2_0``

commit f2f078c4f81065dcf0855d95067d7c32686e972f
Author: jorenham <jhammudoglu@gmail.com>
Date:   Sat Feb 8 15:30:32 2025 +0100

    TYP: stub ``numpy._globals``
@jorenham jorenham added the numtype Isssue/PR related to numpy/numtype label Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
41 - Static typing numtype Isssue/PR related to numpy/numtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants