Skip to content

Conversation

@Valentin-Laurent
Copy link
Collaborator

  • Remove numpy compatibility modules (_typing.py and _compatibility.py) and correct related imports (hence the number of files modified in this PR)
  • Update dependencies in pyproject.toml
  • Update dependencies in CI
  • Update Migration Guide and README.rst

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR drops support for Python <3.9 and NumPy <1.22 by removing obsolete compatibility modules and updating import statements and dependency configurations.

  • Removed the numpy compatibility modules (_typing.py and _compatibility.py) and updated import paths in production and example files.
  • Updated CI workflow and dependency versions to reflect the new minimum requirements.

Reviewed Changes

Copilot reviewed 66 out of 68 changed files in this pull request and generated no comments.

Show a summary per file
File Description
mapie/aggregation_functions.py Changed NDArray import to use numpy.typing for compliance with NumPy >=1.22.
mapie/_typing.py Removed obsolete compatibility module.
mapie/_compatibility.py Removed compatibility wrappers no longer necessary with NumPy >=1.22.
examples/* Updated multiple examples to import types from numpy.typing instead of mapie._typing.
.github/workflows/test.yml Updated CI configuration to drop Python 3.7/3.8 tests and use numpy-version 1.22.4 for Python 3.9+.
Files not reviewed (2)
  • README.rst: Language not supported
  • doc/v1_migration_guide.rst: Language not supported

 - Remove numpy compatibility modules (_typing.py and _compatibility.py) and correct related imports (hence the number of files modified in this PR)
 - Update dependencies in pyproject.toml
 - Update dependencies in CI
 - Update Migration Guide and README.rst
@Valentin-Laurent Valentin-Laurent force-pushed the v1-bump-minimal-dependencies-versions branch from 3608d76 to 8805b0d Compare March 28, 2025 10:52
@Valentin-Laurent Valentin-Laurent merged commit 65bb73b into v1 Mar 31, 2025
6 of 11 checks passed
@Valentin-Laurent Valentin-Laurent deleted the v1-bump-minimal-dependencies-versions branch March 31, 2025 08:21
Valentin-Laurent added a commit that referenced this pull request Apr 2, 2025
- Remove numpy compatibility modules (_typing.py and _compatibility.py) and correct related imports (hence the number of files modified in this PR)
 - Update dependencies in pyproject.toml
 - Update dependencies in CI
 - Update Migration Guide and README.rst
FaustinPulveric pushed a commit that referenced this pull request Apr 23, 2025
- Remove numpy compatibility modules (_typing.py and _compatibility.py) and correct related imports (hence the number of files modified in this PR)
 - Update dependencies in pyproject.toml
 - Update dependencies in CI
 - Update Migration Guide and README.rst
Valentin-Laurent added a commit that referenced this pull request May 6, 2025
- Remove numpy compatibility modules (_typing.py and _compatibility.py) and correct related imports (hence the number of files modified in this PR)
 - Update dependencies in pyproject.toml
 - Update dependencies in CI
 - Update Migration Guide and README.rst
Valentin-Laurent added a commit that referenced this pull request May 6, 2025
- Remove numpy compatibility modules (_typing.py and _compatibility.py) and correct related imports (hence the number of files modified in this PR)
 - Update dependencies in pyproject.toml
 - Update dependencies in CI
 - Update Migration Guide and README.rst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants