Skip to content

Fix flatten not resolving abstractness on variant expansion - #18

Merged
Jekannadar merged 1 commit into
developfrom
feature/fix-abstract-variant-expansion
Aug 8, 2026
Merged

Fix flatten not resolving abstractness on variant expansion#18
Jekannadar merged 1 commit into
developfrom
feature/fix-abstract-variant-expansion

Conversation

@Jekannadar

Copy link
Copy Markdown
Contributor

Bug caused because flatten relied on the output of variant expansion already being flat. Variant expansion correctly expanded to all variants in the mro of a class, but flatten is only interested in non-abstract variants.

Fixed by filtering variant expansion output in flatten.

Bug caused because flatten relied on the output of variant expansion already being flat.

@cls-python-workflows cls-python-workflows Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark cosy-luigi

Details
Benchmark suite Current: c6984a5 Previous: 9399032 Ratio
benchmarks/test_benchmark_chain_100.py::test_benchmark_chain_creation 0.7129955787318142 iter/sec (stddev: 0.009217149820574009) 0.6638529947008243 iter/sec (stddev: 0.008475270702951928) 0.93

This comment was automatically generated by workflow using github-action-benchmark.

@codecov

codecov Bot commented Aug 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9399032) to head (c6984a5).
⚠️ Report is 1 commits behind head on develop.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##           develop       #18   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        12           
  Lines          369       371    +2     
  Branches        23        23           
=========================================
+ Hits           369       371    +2     
Flag Coverage Δ
macos-latest-3.10 100.00% <100.00%> (ø)
macos-latest-3.11 100.00% <100.00%> (ø)
macos-latest-3.12 100.00% <100.00%> (ø)
macos-latest-3.13 100.00% <100.00%> (ø)
ubuntu-latest-3.10 100.00% <100.00%> (ø)
ubuntu-latest-3.11 100.00% <100.00%> (ø)
ubuntu-latest-3.12 100.00% <100.00%> (ø)
ubuntu-latest-3.13 100.00% <100.00%> (ø)
windows-latest-3.10 100.00% <100.00%> (ø)
windows-latest-3.11 100.00% <100.00%> (ø)
windows-latest-3.12 100.00% <100.00%> (ø)
windows-latest-3.13 100.00% <100.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.

@Jekannadar
Jekannadar merged commit ef347f7 into develop Aug 8, 2026
17 checks passed
@Jekannadar
Jekannadar deleted the feature/fix-abstract-variant-expansion branch August 25, 2026 23:36
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