-
-
Notifications
You must be signed in to change notification settings - Fork 3k
stubtest: add tests #8380
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
stubtest: add tests #8380
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
6b6775c
stubtest: move into mypy
6010016
stubtest: add entry point to setup.py
1ec9503
stubtest: use mypy.utils.check_python_version
ac4ae2a
stubtest: split up main to make it easier to test
0e6bf85
stubtest: improvements to signature checking
0efa73d
stubtest: [minor] follow project style / track coverage better
a54dc9f
stubtest: [minor] output filename more consistently
3162788
stubtest: [minor] remove no longer necessary optional
ea3f83f
stubtest: fix module level variables missing at runtime
6d63451
stubtest: handle compile errors
3ed99bb
stubtest: [minor] remove black's colon spaces
ac5b12a
stubtest: [minor] remove black's commas
37fe91c
stubtest: [minor] handle a case in get_mypy_type_of_runtime_value
5e0949c
stubtest: add tests
b788ddb
stubtest: [minor] catch more warnings
882fb46
stubtest: add annotation to help mypyc out
1641fe4
stubtest: replace use of find for Windows compatibility
7e7fe25
teststubtest: NamedTemporaryFile doesn't work on Windows
7f6e0d5
stubtest: [minor] make str(signature) deterministic
436586f
mypyc: exclude stubtest.py
6d1f84f
stubtest: fix LiteralType misuse for mypyc
8fda109
stubtest: work around a bug in early versions of py35
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
mypyc: exclude stubtest.py
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I never figured out how to get vars / dict to work. This is the big off switch I mentioned in #8380 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, I inferred from some of the changes since that you'd figured out a workaround. I merged this change now and hopefully we'll eventually find a way to remove the special-casing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workarounds were for the bug in early Python 3.5s and a valid mypyc complaint from another module.
I’ll try Sully’s suggestion to see if we can remove stubtest from the blacklist.