Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent local classes from being written to stub files #3462

Merged
merged 2 commits into from
Jul 10, 2020

Conversation

jwaataja
Copy link
Contributor

Fixes #3461

Local classes can't be parsed by the stub file reader, so this prevents them from being written. Even before #3441, which introduced the crash in #3461, local classes caused problems with whole program inference.

Copy link
Contributor

@kelloggm kelloggm left a comment

Choose a reason for hiding this comment

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

Thanks for this fix. After fixing the one typo in the docs I found, this can be merged when tests pass.

@kelloggm kelloggm merged commit 492f41e into typetools:master Jul 10, 2020
@jwaataja jwaataja removed the request for review from mernst July 10, 2020 08:00
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.

Class declaration in method causes crash with -Ainfer
3 participants