Skip to content

Improve docstrings and tighten array type annotations - #30

Merged
mcdigman merged 3 commits into
devfrom
docs-docstring-cleanup
Jul 10, 2026
Merged

Improve docstrings and tighten array type annotations#30
mcdigman merged 3 commits into
devfrom
docs-docstring-cleanup

Conversation

@mcdigman

Copy link
Copy Markdown
Owner

Summary

  • Rewrite and standardize docstrings across pyakima/pyakima.py: enumerate the corner_model and ext options as lists, describe SplineCoeffs as a NamedTuple, and expand the non-finite y behavior and helper-dispatch notes.
  • Tighten AkimaSpline x/y annotations to NDArray[np.floating] and add # type: ignore[arg-type] on the integer-input tests accordingly.
  • Change the linear_vector_calls validation error message to set notation {0, 1}.

Test plan

  • Pre-commit hooks (ruff, ruff format, pyrefly, pyupgrade, ssort, etc.) pass on the committed changes.

🤖 Generated with Claude Code

mcdigman and others added 3 commits July 10, 2026 14:40
Rewrite and standardize docstrings across pyakima.py: clarify corner_model
and ext options as enumerated lists, describe SplineCoeffs as a NamedTuple,
and expand the non-finite y and helper-dispatch notes.

Tighten AkimaSpline x/y annotations to NDArray[np.floating] and add
type: ignore[arg-type] on the integer-input tests accordingly. Adjust the
linear_vector_calls error message to use set notation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mcdigman
mcdigman merged commit da3f00f into dev Jul 10, 2026
14 checks passed
@mcdigman
mcdigman deleted the docs-docstring-cleanup branch July 10, 2026 19:55
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.

1 participant