module documentation
Basic checker for Python code.
Class |
|
Undocumented |
Constant | BUILTIN |
Undocumented |
Constant | DEFAULT |
Undocumented |
Constant | EXEMPT |
Undocumented |
Constant | TYPE |
Undocumented |
Function | _determine |
Determine the name type whose regex the function's name should match. |
Function | _get |
Returns a tuple of property classes and names. |
Function | _is |
Undocumented |
Function | _redefines |
Detect that the given node (AssignName) is inside an exception handler and redefines an import from the tryexcept body. |
Type Alias | _ |
Undocumented |
Undocumented
Value |
|
def _determine_function_name_type(node:
nodes.FunctionDef
, config: argparse.Namespace
) -> str
:
(source)
¶
Determine the name type whose regex the function's name should match. :param node: A function node. :param config: Configuration from which to pull additional property classes. :returns: One of ('function', 'method', 'attr')
Returns a tuple of property classes and names. Property classes are fully qualified, such as 'abc.abstractproperty' and property names are the actual names, such as 'abstract_property'.
def _is_multi_naming_match(match:
re.Match[ str]|None
, node_type: str
, confidence: interfaces.Confidence
) -> bool
:
(source)
¶
Undocumented