Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mattip/numpy
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: numpy/numpy
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 20 commits
  • 90 files changed
  • 6 contributors

Commits on Jun 8, 2025

  1. TST: migrating from pytz to zoneinfo + tzdata (where needed)

    For migration from pytz to zoneinfo function get_tzoffset_from_pytzinfo from numpy/_core/src/multiarray/datetime.c is modified to use astimezone instead of fromutc.
    As the object ZoneInfo is not directly compatible to be used with datetime object.
    Hence, something like this would result in an exception.
    
    from datetime import datetime
    from zoneinfo import ZoneInfo
    
    a = datetime(2025, 6, 7, 10, 0, 0)
    zoneInfo = ZoneInfo("US/Central")
    b = zoneInfo.fromutc(a)
    
    ValueError: fromutc: dt.tzinfo is not self
    
    The function astimezone can be used with both pytz.timezone object and zoneinfo.ZoneInfo object
    But, if we want to use the datetime object consistently we cannot let it be a naive type i.e. without a timezone.
    As the default behaviour of astimezone would take the system timezone if the datetime object is not timezone aware.
    
    Hence, I had to also change the call to create datetime object to take UTC timezone.
    
    See numpy#29064
    V-R-S committed Jun 8, 2025
    Configuration menu
    Copy the full SHA
    21c2e70 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2025

  1. Adding refactored tests

    .
    
    .
    V-R-S committed Jun 10, 2025
    Configuration menu
    Copy the full SHA
    81b2a67 View commit details
    Browse the repository at this point in the history
  2. Removing additional references to pytz

    .
    
    .
    V-R-S committed Jun 10, 2025
    Configuration menu
    Copy the full SHA
    0f1a6f8 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2025

  1. Merge pull request numpy#29148 from V-R-S/refactor-zoneinfo

    TST: migrating from pytz to zoneinfo + tzdata (where needed)
    mattip authored Jun 11, 2025
    Configuration menu
    Copy the full SHA
    44d3cf1 View commit details
    Browse the repository at this point in the history
  2. TYP: Accept dispatcher function with optional returns in ``_core.over…

    …rides`` (numpy#29171)
    
    Co-authored-by: Sebastian Berg <[email protected]>
    jorenham and seberg authored Jun 11, 2025
    Configuration menu
    Copy the full SHA
    29c85f3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a17726a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9cbddda View commit details
    Browse the repository at this point in the history
  5. TYP: Fix invalid inline annotations in lib._function_base_impl (n…

    …umpy#29175)
    
    * TYP: Fix invalid inline annotations in ``lib._function_base_impl``
    
    * TYP: ``ruff check --fix``
    
    * TYP: prevent inline annotation from causing a circular import error
    jorenham authored Jun 11, 2025
    Configuration menu
    Copy the full SHA
    42b875f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1512865 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7d8b1d5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7bb70e1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ceb858f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ea91f18 View commit details
    Browse the repository at this point in the history
  11. TYP: Fix missing _core.numeric (re-)exports (numpy#29166)

    * TYP: Sync `_core/numerictypes.pyi` with NumType's `numpy-stubs`
    
    * TYP: Fix missing ``_core.numeric`` (re-)exports
    
    * TYP: appease ``ruff``
    jorenham authored Jun 11, 2025
    Configuration menu
    Copy the full SHA
    18cbd6d View commit details
    Browse the repository at this point in the history
  12. MAINT: Bump pypa/cibuildwheel from 3.0.0b4 to 3.0.0 (numpy#29180)

    Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 3.0.0b4 to 3.0.0.
    - [Release notes](https://github.com/pypa/cibuildwheel/releases)
    - [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md)
    - [Commits](pypa/cibuildwheel@cf078b0...5f22145)
    
    ---
    updated-dependencies:
    - dependency-name: pypa/cibuildwheel
      dependency-version: 3.0.0
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 11, 2025
    Configuration menu
    Copy the full SHA
    8ce860f View commit details
    Browse the repository at this point in the history
  13. CI: Bump array-api-tests to v2025.05.23 (numpy#29149)

    * CI: Bump `array-api-tests` to `v2025.05.23`
    
    * TST: xfail new array-api test failures
    
    * TST: increase ``--max-examples`` from 100 to 500 for ``array-api-tests``
    
    * CI: apply review suggestions
    
    Co-authored-by: Evgeni Burovski <[email protected]>
    
    ---------
    
    Co-authored-by: Evgeni Burovski <[email protected]>
    jorenham and ev-br authored Jun 11, 2025
    Configuration menu
    Copy the full SHA
    a3ec9af View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    3d1cdb4 View commit details
    Browse the repository at this point in the history
  15. STY: ruff/isort config tweaks (numpy#29183)

    * DEV: import-related ruff config tweaks
    
    * STY: run ``ruff check --fix`` to fix the new ``I001`` errors
    jorenham authored Jun 11, 2025
    Configuration menu
    Copy the full SHA
    2c19076 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2025

  1. Configuration menu
    Copy the full SHA
    1ea01c5 View commit details
    Browse the repository at this point in the history
  2. BUG: fix matmul with transposed out arg (numpy#29179)

    * BUG: fix matmul with transposed out arg
    
    * DOC: add release note
    
    * fixes from review
    mattip authored Jun 12, 2025
    Configuration menu
    Copy the full SHA
    303095e View commit details
    Browse the repository at this point in the history
Loading