class StdlibChecker(DeprecatedMixin, BaseChecker): (source)
Undocumented
Method | __init__ |
Checker instances should have the linter as argument. |
Method | deprecated |
Callback returning the deprecated arguments of method/function. |
Method | deprecated |
Callback returning the deprecated classes of module. |
Method | deprecated |
Callback returning the deprecated decorators. |
Method | deprecated |
Callback returning the deprecated methods/functions. |
Method | visit |
Undocumented |
Method | visit |
Visit a Call node. |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Class Variable | msgs |
Undocumented |
Class Variable | name |
Name of the provider. |
Method | _check |
Undocumented |
Method | _check |
Check that a datetime was inferred, if so, emit boolean-datetime warning. |
Method | _check |
Undocumented |
Method | _check |
Undocumented |
Method | _check |
Undocumented |
Method | _check |
Undocumented |
Method | _check |
Undocumented |
Method | _check |
Check if instance methods are decorated with functools.lru_cache. |
Method | _check |
Various checks for an open call. |
Method | _check |
Undocumented |
Method | _check |
Undocumented |
Instance Variable | _deprecated |
Undocumented |
Instance Variable | _deprecated |
Undocumented |
Instance Variable | _deprecated |
Undocumented |
Instance Variable | _deprecated |
Undocumented |
Inherited from DeprecatedMixin
:
Method | check |
Checks if the class is deprecated. |
Method | check |
Checks if call the deprecated class. |
Method | check |
Executes the checker for the given node. |
Method | check |
Checks if the module is deprecated. |
Method | deprecated |
Callback returning the deprecated modules. |
Method | visit |
Triggered when a decorator statement is seen. |
Method | visit |
Triggered when an import statement is seen. |
Method | visit |
Triggered when a from statement is seen. |
Constant | DEPRECATED |
Undocumented |
Constant | DEPRECATED |
Undocumented |
Constant | DEPRECATED |
Undocumented |
Constant | DEPRECATED |
Undocumented |
Constant | DEPRECATED |
Undocumented |
Inherited from BaseChecker
(via DeprecatedMixin
):
Method | __eq__ |
Permit to assert Checkers are equal. |
Method | __gt__ |
Sorting of checkers. |
Method | __hash__ |
Make Checker hashable. |
Method | __repr__ |
Undocumented |
Method | __str__ |
This might be incomplete because multiple classes inheriting BaseChecker can have the same name. |
Method | add |
Undocumented |
Method | check |
Check the consistency of msgid. |
Method | close |
Called after visiting project (i.e set of modules). |
Method | create |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | open |
Called before visiting project (i.e. set of modules). |
Method | reduce |
Undocumented |
Class Variable | enabled |
Undocumented |
Class Variable | options |
Options provided by this provider. |
Class Variable | reports |
Undocumented |
Instance Variable | linter |
Undocumented |
Property | messages |
Undocumented |
Inherited from _ArgumentsProvider
(via DeprecatedMixin
, BaseChecker
):
Method | get |
DEPRECATED: Return the dictionary defining an option given its name. |
Method | level |
Undocumented |
Method | load |
DEPRECATED: Initialize the provider using default values. |
Method | option |
DEPRECATED: Get the config attribute corresponding to opt. |
Method | option |
DEPRECATED: Get the current value for the given option. |
Method | options |
DEPRECATED. |
Method | options |
DEPRECATED: Return an iterator on options grouped by section. |
Method | set |
DEPRECATED: Method called to set an option (registered in the options list). |
Class Variable | option |
Option groups of this provider and their descriptions. |
Property | config |
Undocumented |
Property | level |
Undocumented |
Instance Variable | _arguments |
The manager that will parse and register any options provided. |
Instance Variable | _level |
Undocumented |
pylint.checkers.BaseChecker.__init__
Checker instances should have the linter as argument.
Callback returning the deprecated arguments of method/function. Args: method (str): name of function/method checked for deprecated arguments Returns: collections.abc.Iterable in form: ((POSITION1, PARAM1), (POSITION2: PARAM2) ...) where * POSITIONX - position of deprecated argument PARAMX in function definition. If argument is keyword-only, POSITIONX should be None. * PARAMX - name of the deprecated argument. E.g. suppose function: .. code-block:: python def bar(arg1, arg2, arg3, arg4, arg5='spam') with deprecated arguments `arg2` and `arg4`. `deprecated_arguments` should return: .. code-block:: python ((1, 'arg2'), (3, 'arg4'))
Callback returning the deprecated classes of module. Args: module (str): name of module checked for deprecated classes Returns: collections.abc.Container of deprecated class names.
Callback returning the deprecated decorators. Returns: collections.abc.Container of deprecated decorator names.
Callback returning the deprecated methods/functions. Returns: collections.abc.Container of deprecated function/method names.
def visit_boolop(self, node:
nodes.BoolOp
):
(source)
¶
Undocumented
def visit_call(self, node:
nodes.Call
):
(source)
¶
Visit a Call node.
def visit_functiondef(self, node:
nodes.FunctionDef
):
(source)
¶
Undocumented
def visit_if(self, node:
nodes.If
):
(source)
¶
Undocumented
def visit_ifexp(self, node:
nodes.IfExp
):
(source)
¶
Undocumented
def visit_unaryop(self, node:
nodes.UnaryOp
):
(source)
¶
Undocumented
nodes.Call
, infer: nodes.FunctionDef
, message: str
, call_arg: InferenceResult|None
, allow_none: bool
):
(source)
¶
Undocumented