Skip to content

fix Stack overflow with recursive class definitions #4193#4195

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:4193
Open

fix Stack overflow with recursive class definitions #4193#4195
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:4193

Conversation

@asukaminato0721

Copy link
Copy Markdown
Collaborator

Summary

Fixes #4193

Made ABCMeta ancestry traversal cycle-aware, preventing recursive class definitions from overflowing the stack.

Test Plan

add test

@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stack overflow with recursive class definitions

1 participant