KEMBAR78
Fix spurious "cycle in function expansion" errors. by gvanrossum · Pull Request #3504 · python/mypy · GitHub
Skip to content

Conversation

gvanrossum
Copy link
Member

Most of these (at least) seem to be due to a function being analyzed
multiple times, and the 'expanded' list filling up with 2 or more
references to the same FuncDef.

If there are other reasons they will still trigger the same error, but
at least for mypy itself, the error no longer appears with this simple
fix.

Fixes #3503.

Most of these (at least) seem to be due to a function being analyzed
multiple times, and the 'expanded' list filling up with 2 or more
references to the same FuncDef.

If there are other reasons they will still trigger the same error, but
at least for mypy itself, the error no longer appears with this simple
fix.
@ilinum ilinum self-assigned this Jun 6, 2017
Copy link
Collaborator

@ilinum ilinum left a comment

Choose a reason for hiding this comment

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

Should be good to merge once the build passes!

@gvanrossum gvanrossum merged commit cbb4ba8 into master Jun 6, 2017
@gvanrossum gvanrossum deleted the fix-cycle branch June 6, 2017 20:41
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.

Error in Cycle Expansion when running html-report

2 participants