Skip to content

Stop exporting names that shadow Base, LinearAlgebra, or ITensorBase#3

Merged
mtfishman merged 2 commits into
mainfrom
mf/unexport-shadowing
Jul 8, 2026
Merged

Stop exporting names that shadow Base, LinearAlgebra, or ITensorBase#3
mtfishman merged 2 commits into
mainfrom
mf/unexport-shadowing

Conversation

@mtfishman

@mtfishman mtfishman commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary

Names this compat layer owns but that share a name with a Base, LinearAlgebra, or ITensorBase function (exp, the svd/qr/eigen/factorize factorizations, and inds/prime/noprime/apply/state) are no longer exported. They stay defined and are reached qualified, e.g. ITensors.svd, matching how tr was already handled. This avoids a name collision when a consumer has one of those packages in scope alongside this one. Everything else is still exported for using ITensorsITensorBaseCompat.ITensors.

Removing exports is breaking, so this bumps the version to 0.2.0.

mtfishman added 2 commits July 7, 2026 22:24
Names this compat layer owns but that share a name with a `Base`, `LinearAlgebra`, or `ITensorBase` function (`exp`, the `svd`/`qr`/`eigen`/`factorize` factorizations, and `inds`/`prime`/`noprime`/`apply`/`state`) are no longer exported. They stay defined and are reached qualified, e.g. `ITensors.svd`, matching how `tr` was already handled. This avoids a name collision when a consumer has one of those packages in scope alongside this one. Everything else is still exported for `using ITensorsITensorBaseCompat.ITensors`.
The `test/`, `docs/`, and `examples/` projects pin the package version, so move their `[compat]` entries to `0.2` alongside the breaking version bump.
@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 1.96%. Comparing base (ac42bb4) to head (9b5047e).

Additional details and impacted files
@@          Coverage Diff          @@
##            main      #3   +/-   ##
=====================================
  Coverage   1.96%   1.96%           
=====================================
  Files          5       5           
  Lines        306     306           
=====================================
  Hits           6       6           
  Misses       300     300           
Flag Coverage Δ
docs 0.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mtfishman mtfishman merged commit a50cc26 into main Jul 8, 2026
17 checks passed
@mtfishman mtfishman deleted the mf/unexport-shadowing branch July 8, 2026 13:29
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