-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Invalidate the cache if disallow_incomplete_defs changes #5414
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
Invalidate the cache if disallow_incomplete_defs changes #5414
Conversation
@gvanrossum took your advice from #5413 (comment) I also sorted the list, I can rebase that out if it's undesirable :) |
I'm okay with sorting, though I would recommend adding a comment to the top
`# Please keep this list sorted.`
Also can you add a test case that reproduces the bug from #5413 to show
that it's now fixed?
I'd also like to see a test case showing that this flag is per-module.
|
I'm not super familiar with the test suite but I'll try and take a look at that later. I've added the comment as suggested. I also don't really know what it means to be "per-module" so I'm not sure how to test that part -- open to suggestions though :) |
A per-module flag can vary per module, see
http://mypy.readthedocs.io/en/latest/config_file.html#per-module-flags
|
Thanks -- let me know if you are going to add tests. Also, please don't amend or squash commits -- we'll squash them when we land, but during the review process it's easier if you create and push new local commits. |
ah yeah, still trying to figure out the tests. I'm not really finding any other integration tests for the caching stuff or I'm not looking in the right spot. does the test framework used in |
There are some tests in test-data/unit/check-flags.test that vary the flags
in mypy.ini.
…On Wed, Aug 1, 2018 at 7:27 PM, Anthony Sottile ***@***.***> wrote:
ah yeah, still trying to figure out the tests. I'm not really finding any
other integration tests for the caching stuff or I'm not looking in the
right spot. does the test framework used in ./test-data support multiple
invocations of mypy? (didn't find any examples at a glance but to be
honest I wasn't looking all that exhaustively)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5414 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACwrMprMqnTtetip76UQ53sBHuHeCMUDks5uMmOFgaJpZM4VrEz->
.
--
--Guido van Rossum (python.org/~guido)
|
Thanks! |
Resolves #5413