Skip to content

Support current dtype shorthand in Array.pp - #369

Open
ac1982 wants to merge 1 commit into
scott-griffiths:mainfrom
ac1982:feat/array-pp-current-dtype
Open

ac1982 wants to merge 1 commit into
scott-griffiths:mainfrom
ac1982:feat/array-pp-current-dtype

Conversation

@ac1982

@ac1982 ac1982 commented Oct 15, 2026

Copy link
Copy Markdown

Closes #313.

Allow Array.pp("_, bin") (or "bin, _") to use the array’s current dtype without repeating it in the format string. _ resolves to the existing Dtype object at each call, retaining the existing grouping and length validation. Includes tests, manual API documentation and a release note.

Validation: all 1,226 tests passed on Python 3.12 / tibs 2.0.2; the eight new regression cases failed before the change. The Sphinx HTML build passed with warnings treated as errors. Windows, macOS and other Python versions were not tested locally.

This targets the 5.x API; it does not restore the scaling feature mentioned in the original issue. Developed and tested with Codex (AI).

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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.

Shortcut for current dtype in pp.

1 participant