Skip to content

stubtest: various fixes #8288

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

Merged
merged 3 commits into from
Jan 16, 2020
Merged

stubtest: various fixes #8288

merged 3 commits into from
Jan 16, 2020

Conversation

hauntsaninja
Copy link
Collaborator

This is enough to get stubtest working again, e.g., with python3 stubtest.py zipfile.

I'm not familiar enough with the code to know precisely why we need to disable incremental, but from tracing the code we seemed to run into issues with mypy.Build.State.meta – let me know if there's a better fix.

hauntsaninja added 3 commits January 15, 2020 19:24
This will cause us to assume python version is sys.version_info, which
is the behaviour we want, since we're comparing things to the runtime
Copy link
Collaborator

@JukkaL JukkaL 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 the fixes! This script has been neglected for a long time, but maybe it could turn into a useful utility.

@JukkaL JukkaL merged commit 4731070 into python:master Jan 16, 2020
@hauntsaninja hauntsaninja deleted the stubtest_push branch January 16, 2020 17:47
@hauntsaninja
Copy link
Collaborator Author

Yes, I'm working on an overhaul of stubtest that implements the things you mentioned in python/typeshed#754 and a couple more, with the goal of improving tests for typeshed. I'll open up a couple issues when I think it's ready, but WIP is at https://github.com/hauntsaninja/mypy/tree/stubtest2/scripts

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.

2 participants