Skip to content

Relax the type constraint of promote_rule only from method signature perspective - #366

Merged
kimikage merged 1 commit into
JuliaMath:masterfrom
kimikage:relax_promote_rule_weak
Oct 25, 2026
Merged

kimikage merged 1 commit into
JuliaMath:masterfrom
kimikage:relax_promote_rule_weak

Conversation

@kimikage

@kimikage kimikage commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

This is a provisional substitute for PR #341.
This does not improve the results for non-concrete types, i.e., is "essentially" unrelated to Issue #343.
However, as a side effect, the upper bound T <: Integer for the raw type is introduced.
This also adds a workaround for errors caused by the Union{}.

@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.69%. Comparing base (7869b16) to head (7dfef8d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #366      +/-   ##
==========================================
- Coverage   96.79%   96.69%   -0.10%     
==========================================
  Files           7        7              
  Lines         812      818       +6     
==========================================
+ Hits          786      791       +5     
- Misses         26       27       +1     

☔ 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.

@kimikage
kimikage force-pushed the relax_promote_rule_weak branch 2 times, most recently from 6aabb78 to 9e8589f Compare October 23, 2026 15:16
@kimikage
kimikage marked this pull request as ready for review October 23, 2026 15:25
@kimikage kimikage changed the title [WIP] Relax the type constraint of promote_rule only from method signature perspective Relax the type constraint of promote_rule only from method signature perspective Oct 23, 2026
@kimikage
kimikage marked this pull request as draft October 23, 2026 22:49
@kimikage
kimikage force-pushed the relax_promote_rule_weak branch 4 times, most recently from cb76254 to 6650de7 Compare October 24, 2026 01:39
@kimikage
kimikage marked this pull request as ready for review October 24, 2026 01:39
@kimikage
kimikage force-pushed the relax_promote_rule_weak branch from 6650de7 to 7dfef8d Compare October 24, 2026 05:03
@kimikage
kimikage merged commit e85f66b into JuliaMath:master Oct 25, 2026
15 of 16 checks passed
@kimikage
kimikage deleted the relax_promote_rule_weak branch October 25, 2026 05:24
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