-
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop a superfluous and wrong callcontext when inferring the result of…
… a context manager The callcontext was containing the instance of the class (self) as the sole argument, but this was tripping the inference of unknown arguments coming down into an instance, such as the one from the commit's example. By dropping the superfluous callcontext, the inference can no longer assume that the first argument is the instance of the class, leading to wrongly infer `self.client` as the first argument of the instantiation call. Close pylint-dev/pylint#2859
- Loading branch information
1 parent
55076ca
commit e0a298d
Showing
3 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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