-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Always use the suggestion mode for no-member
/ c-extension-no-member
#9962
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
Always use the suggestion mode for no-member
/ c-extension-no-member
#9962
Conversation
This comment has been minimized.
This comment has been minimized.
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.
I agree with the change! Do we need tests?
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.
Principle makes sense to me.
b370363
to
7a7170f
Compare
This comment has been minimized.
This comment has been minimized.
7a7170f
to
8e103a6
Compare
This comment has been minimized.
This comment has been minimized.
no-member
/ c-extension-no-member
no-member
/ c-extension-no-member
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
_is_c_extension already checks if owner is a Module See #9962 (comment) Caching start to make sense in _similar_name See #9962 (comment)
d2abf8d
to
bf2fcc7
Compare
This comment has been minimized.
This comment has been minimized.
@@ -172,6 +172,7 @@ def _string_distance(seq1: str, seq2: str, seq1_length: int, seq2_length: int) - | |||
return row[seq2_length - 1] | |||
|
|||
|
|||
@lru_cache(maxsize=256) |
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.
Can we add this to clear_lru_caches()?
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.
This created a circular import between typecheck and utils so I created a new file.
_is_c_extension already checks if owner is a Module See #9962 (comment) Caching start to make sense in _similar_name See #9962 (comment)
bf2fcc7
to
32b7046
Compare
This comment has been minimized.
This comment has been minimized.
Blocked by #10320 |
_is_c_extension already checks if owner is a Module See pylint-dev#9962 (comment) Caching start to make sense in _similar_name See pylint-dev#9962 (comment) We had to create a clean_lru_cache file to prevent a circular import.
32b7046
to
87c6d0c
Compare
(I won't be able to work on this caching issue for the next 3 days as I'll be on mobile.) |
Is this a caching issue? Isn't it just a test failure? |
The failing test is |
This comment has been minimized.
This comment has been minimized.
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 issue was that theses tests use sys.executable
(or whatever it is called) and then call the globally installed pylint
. Without the cache miss it means that this will keep inserting suggestion-mode
in the generated config as the globally installed pylint still has it in its options.
Fixed it by invalidating the cache.
We should probably reconsider those tests.
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit 8eb2dbf |
@Pierre-Sassoulas Both |
We're already skipping some tests on pypi, we can skip more. There seem to be some users as evidenced by the MR opened to add 3.11 pypy support you linked. |
Type of Changes
Description
There's no reason to not suggest, so we can remove the option too in the spirit of simplification. The performance of no-member were recently improved in #10277