Skip to content

Remove unused argument from NumPy vector repr - #768

Open
jaitak2121-spec wants to merge 1 commit into
scikit-hep:mainfrom
jaitak2121-spec:cleanup/numpy-array-repr
Open

jaitak2121-spec wants to merge 1 commit into
scikit-hep:mainfrom
jaitak2121-spec:cleanup/numpy-array-repr

Conversation

@jaitak2121-spec

Copy link
Copy Markdown

Description

Remove the unused is_momentum parameter from _array_repr and update all
six callers. The helper already uses the array’s concrete class name.
This addresses the NumPy repr cleanup in #711.

All 48 before-and-after repr comparisons matched byte for byte.

AI disclosure: Codex investigated the issue, wrote the patch and this
description, and ran the local checks.

Checklist

  • Followed the contribution guidelines.
  • Checked for competing PRs.
  • Full pre-commit run. Ruff lint and format checks passed for the changed file.
  • Tests passed. 4,919 passed and 16 skipped, with notebooks excluded.
  • Documentation build. Not run.
  • Doctests passed. 119 passed.

Before Merging

  • Summarize the commit messages in the PR review.

Addresses the NumPy repr cleanup in scikit-hep#711. Developed and verified with OpenAI Codex assistance.

This branch has not been deployed

No deployments
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