-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
address isinstance false negative when provided too many arguments
- add too-many-function-args call - include handling for too-few-function-args
- Loading branch information
Showing
7 changed files
with
43 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Fix a false negative when `isinstance` has too many arguments. | ||
Change now provides a `too-many-arguments` output with behavior similar to other `too-many-arguments` calls. | ||
|
||
Closes #9847 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# pylint: disable=missing-docstring | ||
|
||
isinstance(1) # [too-few-function-args] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
too-few-function-args:3:0:3:13::Too few positional arguments (1/2):HIGH |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
too-many-arguments:4:0:4:19:stupid_function:Too many arguments (9/5):UNDEFINED | ||
too-many-positional-arguments:4:0:4:19:stupid_function:Too many positional arguments (9/5):HIGH | ||
too-many-arguments:37:0:37:9:name1:Too many arguments (6/5):UNDEFINED | ||
too-many-arguments:4:0:4:19:stupid_function:Too many arguments (9/5):UNDEFINED | ||
too-many-positional-arguments:4:0:4:19:stupid_function:Too many positional arguments (9/5):HIGH | ||
too-many-arguments:37:0:37:9:name1:Too many arguments (6/5):UNDEFINED |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
too-many-function-args:23:0:23:23::Too many positional arguments (3/2):HIGH | ||
isinstance-second-argument-not-valid-type:24:0:24:21::Second argument of isinstance is not a type:INFERENCE | ||
too-many-function-args:24:0:24:21::Too many positional arguments (3/2):HIGH |