Skip to content

Conversation

@jorenham
Copy link
Member

@jorenham jorenham commented Aug 15, 2025

towards #572

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 type annotations for the zscore and gzscore functions in the scipy stats module by adding comprehensive overloads that provide more precise return types based on input array types and shapes.

  • Enhanced type annotations with detailed overloads for different input types (integer, float, complex) and array dimensions
  • Added comprehensive test coverage for the new type annotations
  • Minor cleanup of axis parameter types in the lmoment function

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
scipy-stubs/stats/_stats_py.pyi Added detailed overloads for zscore and gzscore functions with precise return types, and simplified lmoment axis parameter types
tests/stats/test_zscore.pyi Added comprehensive type tests covering various input types and array dimensions for the improved zscore function

@jorenham jorenham force-pushed the better-stats.zscore branch from 9a56255 to 0fb2e32 Compare August 15, 2025 01:28
@jorenham jorenham merged commit 5ed42d4 into master Aug 15, 2025
21 checks passed
@jorenham jorenham deleted the better-stats.zscore branch August 15, 2025 01:38
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