Skip to content

[Backport maintenance/4.0.x] Wrong inference with default argument values - #2924

Merged
jacobtylerwalls merged 1 commit into
maintenance/4.0.xfrom
backport-2914-to-maintenance/4.0.x
Jan 3, 2026
Merged

[Backport maintenance/4.0.x] Wrong inference with default argument values#2924
jacobtylerwalls merged 1 commit into
maintenance/4.0.xfrom
backport-2914-to-maintenance/4.0.x

Fix overzealous filtering of `IfExp` inference (#2914)

bfd7a1c
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jan 3, 2026 in 1s

No report found to compare against

View this Pull Request on Codecov

No report found to compare against

Details

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (maintenance/4.0.x@ae761dc). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                  @@
##             maintenance/4.0.x    #2924   +/-   ##
====================================================
  Coverage                     ?   93.44%           
====================================================
  Files                        ?       92           
  Lines                        ?    11175           
  Branches                     ?        0           
====================================================
  Hits                         ?    10442           
  Misses                       ?      733           
  Partials                     ?        0           
Files with missing lines Coverage Δ
astroid/nodes/node_classes.py 95.04% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.