Skip to content

[Backport maintenance/3.3.x] change the type annotation error heuristic#2586

Merged
Pierre-Sassoulas merged 1 commit intomaintenance/3.3.xfrom
backport-2583-to-maintenance/3.3.x
Sep 26, 2024
Merged

[Backport maintenance/3.3.x] change the type annotation error heuristic#2586
Pierre-Sassoulas merged 1 commit intomaintenance/3.3.xfrom
backport-2583-to-maintenance/3.3.x

Conversation

@github-actions
Copy link
Contributor

Backport 62c5bad from #2583.

The previous one depended on the message from "typed_ast", which is
   not used anymore.

Instead, we check if there is a "# type:" substring in the source line
   of the exception. This can yield some false positives, but probably
   rarely.

(cherry picked from commit 62c5bad)
@Pierre-Sassoulas Pierre-Sassoulas enabled auto-merge (squash) September 26, 2024 04:31
@codecov
Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (maintenance/3.3.x@6042e58). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                  @@
##             maintenance/3.3.x    #2586   +/-   ##
====================================================
  Coverage                     ?   93.03%           
====================================================
  Files                        ?       93           
  Lines                        ?    11056           
  Branches                     ?        0           
====================================================
  Hits                         ?    10286           
  Misses                       ?      770           
  Partials                     ?        0           
Flag Coverage Δ
linux 92.90% <100.00%> (?)
pypy 93.03% <100.00%> (?)
windows 93.01% <100.00%> (?)

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

Files with missing lines Coverage Δ
astroid/builder.py 95.11% <100.00%> (ø)

@Pierre-Sassoulas Pierre-Sassoulas merged commit 34c70f0 into maintenance/3.3.x Sep 26, 2024
@Pierre-Sassoulas Pierre-Sassoulas deleted the backport-2583-to-maintenance/3.3.x branch September 26, 2024 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants