Skip to content

Conversation

@jorenham
Copy link
Member

No description provided.

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 improves the type signature for the odeint function in scipy-stubs by providing more precise type annotations, better parameter handling, and enhanced type safety. The changes focus on making the function signatures more accurate and comprehensive.

Key changes:

  • Refactored function type annotations to use TypeAlias and more specific return types
  • Moved and updated the ODEInfoDict definition to be more accurate
  • Added comprehensive overloads to handle different parameter combinations properly

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
tests/integrate/test_odeint.pyi Added comprehensive type tests covering various odeint usage patterns with different function signatures and parameter combinations
scipy-stubs/integrate/_typing.pyi Removed the ODEInfoDict class as it was moved to the specific module files
scipy-stubs/integrate/_odepack_py.pyi Major refactor of odeint overloads with improved type aliases, more precise parameter types, and better handling of function signatures
scipy-stubs/integrate/_odepack.pyi Updated the private odeint function signature with more accurate types and proper overloads

@jorenham jorenham enabled auto-merge July 21, 2025 12:47
@jorenham jorenham merged commit 74479b4 into master Jul 21, 2025
19 checks passed
@jorenham jorenham deleted the integrate.odeint branch July 21, 2025 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants