summaryrefslogtreecommitdiff
path: root/pylint/checkers/logging.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/logging.py')
-rw-r--r--pylint/checkers/logging.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/pylint/checkers/logging.py b/pylint/checkers/logging.py
index f6ee8dbe0..c334bb280 100644
--- a/pylint/checkers/logging.py
+++ b/pylint/checkers/logging.py
@@ -58,14 +58,12 @@ CHECKED_CONVENIENCE_FUNCTIONS = set([
def is_method_call(callfunc_node, types=(), methods=()):
"""Determines if a CallFunc node represents a method call.
-
Args:
- callfunc_node: The CallFunc AST node to check.
- types: Optional sequence of caller type names to restrict check.
- methods: Optional sequence of method names to restrict check.
-
+ callfunc_node (astroid.CallFunc): The CallFunc AST node to check.
+ types (Optional[String]): Optional sequence of caller type names to restrict check.
+ methods (Optional[String]): Optional sequence of method names to restrict check.
Returns:
- True, if the node represents a method call for the given type and
+ bool: true if the node represents a method call for the given type and
method names, False otherwise.
"""
if not isinstance(callfunc_node, astroid.Call):