Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix spurious "cycle in function expansion" errors. (#3504)
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.
- Loading branch information