pylint の API リファレンス
pylint (pylint-dev/pylint) の公開 API 398 件 —— クラス 115、関数 80、メソッド 203。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: pylint-dev/pylint
| 種別 | 件数 |
|---|---|
| クラス | 115 |
| 関数 | 80 |
| メソッド | 203 |
API 一覧
func
pylint.__pkginfo__.get_numversion_from_version(v:str) -> tuple[int, int, int]Kept for compatibility reason.
class
pylint.checkers.base.basic_checker.BasicCheckerBasic checker.
method
pylint.checkers.base.basic_checker.BasicChecker.leave_try(_:nodes.Try) -> NoneUpdate try block flag.
method
pylint.checkers.base.basic_checker.BasicChecker.open() -> NoneInitialize visit variables and statistics.
method
pylint.checkers.base.basic_checker.BasicChecker.visit_assert(node:nodes.Assert) -> NoneCheck whether assert is used on a tuple or string literal.
method
pylint.checkers.base.basic_checker.BasicChecker.visit_break(node:nodes.Break) -> NoneBreak node visitor.
method
pylint.checkers.base.basic_checker.BasicChecker.visit_call(node:nodes.Call) -> NoneVisit a Call node.
method
pylint.checkers.base.basic_checker.BasicChecker.visit_dict(node:nodes.Dict) -> NoneCheck duplicate key in dictionary.
method
pylint.checkers.base.basic_checker.BasicChecker.visit_expr(node:nodes.Expr) -> NoneCheck for various kind of statements without effect.
method
pylint.checkers.base.basic_checker.BasicChecker.visit_lambda(node:nodes.Lambda) -> NoneCheck whether the lambda is suspicious.
method
pylint.checkers.base.basic_checker.BasicChecker.visit_module(_:nodes.Module) -> NoneCheck module name, docstring and required arguments.
method
pylint.checkers.base.basic_checker.BasicChecker.visit_return(node:nodes.Return) -> NoneReturn node visitor.
method
pylint.checkers.base.basic_checker.BasicChecker.visit_set(node:nodes.Set) -> NoneCheck duplicate value in set.
method
pylint.checkers.base.basic_checker.BasicChecker.visit_try(node:nodes.Try) -> NoneUpdate try block flag.
func
pylint.checkers.base.basic_checker.report_by_type_stats(sect:reporter_nodes.Section, stats:LinterStats, old_stats:LinterStats | None) -> NoneMake a report of.
class
pylint.checkers.base.comparison_checker.ComparisonCheckerChecks for comparisons.
class
pylint.checkers.base.name_checker.naming_style.CamelCaseStyleRegex rules for camelCase naming style.
class
pylint.checkers.base.name_checker.naming_style.PascalCaseStyleRegex rules for PascalCase naming style.
class
pylint.checkers.base.name_checker.naming_style.SnakeCaseStyleRegex rules for snake_case naming style.
class
pylint.checkers.base.name_checker.naming_style.UpperCaseStyleRegex rules for UPPER_CASE naming style.
class
pylint.checkers.base.pass_checker.PassCheckerCheck if the pass statement is really necessary.
method
pylint.checkers.base_checker.BaseChecker.check_consistency() -> NoneCheck the consistency of msgid.
method
pylint.checkers.base_checker.BaseChecker.close() -> NoneCalled after visiting project (i.e set of modules).
method
pylint.checkers.base_checker.BaseChecker.open() -> NoneCalled before visiting project (i.e.
class
pylint.checkers.base_checker.BaseRawFileCheckerBase class for checkers which need to parse the raw file.
method
pylint.checkers.base_checker.BaseRawFileChecker.process_module(node:nodes.Module) -> NoneProcess a module.
class
pylint.checkers.classes.class_checker.ClassCheckerChecker for class nodes.
method
pylint.checkers.classes.class_checker.ClassChecker.leave_classdef(node:nodes.ClassDef) -> NoneChecker for Class nodes.
method
pylint.checkers.classes.class_checker.ClassChecker.visit_classdef(node:nodes.ClassDef) -> NoneInit visit variable _accessed.
method
pylint.checkers.classes.class_checker.ClassChecker.visit_functiondef(node:nodes.FunctionDef) -> NoneCheck method arguments, overriding.
class
pylint.checkers.classes.class_checker.ScopeAccessMapStore the accessed variables per scope.
method
pylint.checkers.classes.class_checker.ScopeAccessMap.accessed(scope:nodes.ClassDef) -> dict[str, list[_AccessNodes]]Get the accessed variables for the given scope.
method
pylint.checkers.classes.class_checker.ScopeAccessMap.set_accessed(node:_AccessNodes) -> NoneSet the given node as accessed.
func
pylint.checkers.clear_lru_cache.clear_lru_caches() -> NoneClear caches holding references to AST nodes.
method
pylint.checkers.deprecated.DeprecatedMixin.check_deprecated_attribute(node:nodes.Attribute) -> NoneChecks if the attribute is deprecated.
method
pylint.checkers.deprecated.DeprecatedMixin.check_deprecated_class(node:nodes.NodeNG, mod_name:str, class_names:Iterable[str]) -> NoneChecks if the class is deprecated.
method
pylint.checkers.deprecated.DeprecatedMixin.check_deprecated_class_in_call(node:nodes.Call) -> NoneChecks if call the deprecated class.
method
pylint.checkers.deprecated.DeprecatedMixin.check_deprecated_method(node:nodes.Call, inferred:nodes.NodeNG) -> NoneExecutes the checker for the given node.
method
pylint.checkers.deprecated.DeprecatedMixin.check_deprecated_module(node:nodes.Import, mod_path:str | None) -> NoneChecks if the module is deprecated.
method
pylint.checkers.deprecated.DeprecatedMixin.deprecated_attributes() -> Iterable[str]Callback returning the deprecated attributes.
method
pylint.checkers.deprecated.DeprecatedMixin.deprecated_classes(module:str) -> Iterable[str]Callback returning the deprecated classes of module.
method
pylint.checkers.deprecated.DeprecatedMixin.deprecated_decorators() -> Iterable[str]Callback returning the deprecated decorators.
method
pylint.checkers.deprecated.DeprecatedMixin.deprecated_modules() -> Iterable[str]Callback returning the deprecated modules.
method
pylint.checkers.deprecated.DeprecatedMixin.visit_attribute(node:nodes.Attribute) -> NoneCalled when an `Attribute` node is visited.
method
pylint.checkers.deprecated.DeprecatedMixin.visit_call(node:nodes.Call) -> NoneCalled when a :class:`nodes.Call` node is visited.
method
pylint.checkers.deprecated.DeprecatedMixin.visit_decorators(node:nodes.Decorators) -> NoneTriggered when a decorator statement is seen.
method
pylint.checkers.deprecated.DeprecatedMixin.visit_import(node:nodes.Import) -> NoneTriggered when an import statement is seen.
method
pylint.checkers.deprecated.DeprecatedMixin.visit_importfrom(node:nodes.ImportFrom) -> NoneTriggered when a from statement is seen.
class
pylint.checkers.design_analysis.MisdesignCheckerChecker of potential misdesigns.
method
pylint.checkers.design_analysis.MisdesignChecker.leave_classdef(node:nodes.ClassDef) -> NoneCheck number of public methods.
method
pylint.checkers.design_analysis.MisdesignChecker.open() -> NoneInitialize visit variables.
method
pylint.checkers.design_analysis.MisdesignChecker.visit_match(node:nodes.Match) -> NoneIncrements the branches counter.
method
pylint.checkers.design_analysis.MisdesignChecker.visit_return(_:nodes.Return) -> NoneCount number of returns.
method
pylint.checkers.design_analysis.MisdesignChecker.visit_try(node:nodes.Try) -> NoneIncrements the branches counter.
method
pylint.checkers.design_analysis.MisdesignChecker.visit_while(node:nodes.While) -> NoneIncrements the branches counter.
class
pylint.checkers.dunder_methods.DunderCallCheckerCheck for unnecessary dunder method calls.
class
pylint.checkers.exceptions.BaseVisitorBase class for visitors defined in this module.
method
pylint.checkers.exceptions.BaseVisitor.visit_default(_:nodes.NodeNG) -> NoneDefault implementation for all the nodes.
class
pylint.checkers.exceptions.ExceptionRaiseLeafVisitorVisitor for handling leaf kinds of a raise value.
class
pylint.checkers.exceptions.ExceptionRaiseRefVisitorVisit references (anything that is not an AST leaf).
class
pylint.checkers.exceptions.ExceptionsCheckerException related checks.
method
pylint.checkers.exceptions.ExceptionsChecker.visit_try(node:nodes.Try) -> NoneCheck for empty except.
method
pylint.checkers.exceptions.ExceptionsChecker.visit_trystar(node:nodes.TryStar) -> NoneCheck for empty except*.
class
pylint.checkers.format.FormatCheckerFormatting checker.
method
pylint.checkers.format.FormatChecker.check_indent_level(string:str, expected:int, line_num:int) -> NoneReturn the indent level of the string.
method
pylint.checkers.format.FormatChecker.check_lines(tokens:TokenWrapper, line_start:int, lines:str, lineno:int) -> NoneCheck given lines for potential messages.
method
pylint.checkers.format.FormatChecker.check_trailing_whitespace_ending(line:str, i:int) -> NoneCheck that there is no trailing white-space.
method
pylint.checkers.format.FormatChecker.is_line_length_check_activated(pylint_pattern_match_object:Match[str]) -> boolReturn True if the line length check is activated.
method
pylint.checkers.format.FormatChecker.new_line(tokens:TokenWrapper, line_end:int, line_start:int) -> NoneA new line has been encountered, process it if necessary.
method
pylint.checkers.format.FormatChecker.process_tokens(tokens:list[tokenize.TokenInfo]) -> NoneProcess tokens and search for: - too long lines (i.e.
method
pylint.checkers.format.FormatChecker.remove_pylint_option_from_lines(options_pattern_obj:Match[str]) -> strRemove the `# pylint ...` pattern from lines.
method
pylint.checkers.format.FormatChecker.visit_default(node:nodes.NodeNG) -> NoneCheck the node line number and check it if not yet done.
class
pylint.checkers.format.TokenWrapperA wrapper for readable access to token information.
class
pylint.checkers.imports.ImportsCheckerBaseChecker for import statements.
method
pylint.checkers.imports.ImportsChecker.close() -> NoneCalled before visiting project (i.e set of modules).
method
pylint.checkers.imports.ImportsChecker.deprecated_modules() -> set[str]Callback returning the deprecated modules.
method
pylint.checkers.imports.ImportsChecker.open() -> NoneCalled before visiting project (i.e set of modules).
method
pylint.checkers.imports.ImportsChecker.visit_import(node:nodes.Import) -> NoneTriggered when an import statement is seen.
method
pylint.checkers.imports.ImportsChecker.visit_importfrom(node:nodes.ImportFrom) -> NoneTriggered when a from statement is seen.
method
pylint.checkers.imports.ImportsChecker.visit_module(node:nodes.Module) -> NoneStore if current module is a package, i.e.
func
pylint.checkers.initialize(linter:PyLinter) -> NoneInitialize linter with checkers in this package.
class
pylint.checkers.lambda_expressions.LambdaExpressionCheckerCheck for unnecessary usage of lambda expressions.
method
pylint.checkers.lambda_expressions.LambdaExpressionChecker.visit_assign(node:nodes.Assign) -> NoneCheck if lambda expression is assigned to a variable.
method
pylint.checkers.lambda_expressions.LambdaExpressionChecker.visit_call(node:nodes.Call) -> NoneCheck if lambda expression is called directly.
class
pylint.checkers.logging.LoggingCheckerChecks use of the logging module.
method
pylint.checkers.logging.LoggingChecker.visit_call(node:nodes.Call) -> NoneChecks calls to logging methods.
method
pylint.checkers.logging.LoggingChecker.visit_import(node:nodes.Import) -> NoneChecks to see if this module uses Python's built-in logging.
method
pylint.checkers.logging.LoggingChecker.visit_importfrom(node:nodes.ImportFrom) -> NoneChecks to see if a module uses a non-Python logging module.
method
pylint.checkers.logging.LoggingChecker.visit_module(_:nodes.Module) -> NoneClears any state left in this checker from last module checked.
class
pylint.checkers.method_args.MethodArgsCheckerBaseChecker for method_args.
class
pylint.checkers.misc.EncodingCheckerBaseChecker for encoding issues and fixme notes.
method
pylint.checkers.misc.EncodingChecker.process_module(node:nodes.Module) -> NoneInspect the source file to find encoding problem.
method
pylint.checkers.misc.EncodingChecker.process_tokens(tokens:list[tokenize.TokenInfo]) -> NoneInspect the source to find fixme problems.
class
pylint.checkers.non_ascii_names.NonAsciiNameCheckerA strict name checker only allowing ASCII.
method
pylint.checkers.non_ascii_names.NonAsciiNameChecker.visit_assignname(node:nodes.AssignName) -> NoneCheck module level assigned names.
method
pylint.checkers.non_ascii_names.NonAsciiNameChecker.visit_call(node:nodes.Call) -> NoneCheck if the used keyword args are correct.
func
pylint.checkers.raw_metrics.report_raw_stats(sect:Section, stats:LinterStats, old_stats:LinterStats | None) -> NoneCalculate percentage of code / doc / comment / empty.
class
pylint.checkers.refactoring.not_checker.NotCheckerChecks for too many not in comparison expressions.
class
pylint.checkers.refactoring.refactoring_checker.RefactoringCheckerLooks for code which can be refactored.
func
pylint.checkers.refactoring.refactoring_checker.RefactoringChecker.get_node_name(node:nodes.NodeNG) -> strObtain simplest representation of a node as a string.
class
pylint.checkers.spelling.CamelCasedWordFilter skipping over camelCasedWords.
class
pylint.checkers.spelling.RegExFilterParent class for filters using regular expressions.
class
pylint.checkers.spelling.SpellingCheckerCheck spelling in comments and docstrings.
class
pylint.checkers.spelling.SphinxDirectivesFilter skipping over Sphinx Directives.
class
pylint.checkers.spelling.WordsWithDigitsFilterSkips words with digits.
class
pylint.checkers.spelling.WordsWithUnderscoresSkips words with underscores.
class
pylint.checkers.strings.StringConstantCheckerCheck string literals.
method
pylint.checkers.strings.StringConstantChecker.process_non_raw_string_token(prefix:str, string_body:str, start_row:int, string_start_col:int) -> NoneCheck for bad escapes in a non-raw string.
class
pylint.checkers.symilar.LineSetHolds and indexes all the lines of a single source file.
func
pylint.checkers.symilar.Run(argv:Sequence[str] | None=None) -> NoReturnStandalone command line access point.
class
pylint.checkers.symilar.SimilaritiesCheckerChecks for similarities and duplicated code.
method
pylint.checkers.symilar.SimilaritiesChecker.close() -> NoneCompute and display similarities on closing (i.e.
method
pylint.checkers.symilar.SimilaritiesChecker.get_map_data() -> list[LineSet]Passthru override.
method
pylint.checkers.symilar.SimilaritiesChecker.process_module(node:nodes.Module) -> NoneProcess a module.
class
pylint.checkers.symilar.SymilarFinds copy-pasted lines of code in a project.
method
pylint.checkers.symilar.Symilar.append_stream(streamid:str, stream:STREAM_TYPES, encoding:str | None=None, tree:nodes.Module | None=None) -> NoneAppend a file to search for similarities.
method
pylint.checkers.symilar.Symilar.get_map_data() -> list[LineSet]Returns the data we can use for a map/reduce process.
method
pylint.checkers.symilar.Symilar.run() -> NoneStart looking for similarities and display results on stdout.
func
pylint.checkers.symilar.hash_lineset(lineset:LineSet, min_common_lines:int=DEFAULT_MIN_SIMILARITY_LINE) -> LineSetHashResultReturn pre-computed hash data for a lineset.
func
pylint.checkers.symilar.remove_successive(all_couples:CplIndexToCplLines_T) -> NoneRemoves all successive entries in the dictionary in argument.
func
pylint.checkers.symilar.report_similarities(sect:Section, stats:LinterStats, old_stats:LinterStats | None) -> NoneMake a layout with some stats about duplication.
class
pylint.checkers.threading_checker.ThreadingCheckerChecks for threading module.
class
pylint.checkers.typecheck.IterableCheckerChecks for non-iterables used in an iterable context.
class
pylint.checkers.typecheck.TypeCheckerTry to find bugs in the code using type inference.
method
pylint.checkers.typecheck.TypeChecker.visit_assign(node:nodes.Assign) -> NoneProcess assignments in the AST.
method
pylint.checkers.typecheck.TypeChecker.visit_attribute(node:nodes.Attribute | nodes.AssignAttr | nodes.DelAttr) -> NoneCheck that the accessed attribute exists.
method
pylint.checkers.typecheck.TypeChecker.visit_unaryop(node:nodes.UnaryOp) -> NoneDetect TypeErrors for unary operands.
func
pylint.checkers.unicode.extract_codec_from_bom(first_line:bytes) -> strTry to extract the codec (unicode only) by checking for the BOM.
func
pylint.checkers.utils.decorated_with_property(node:nodes.FunctionDef) -> boolDetect if the given function node is decorated with a property.
func
pylint.checkers.utils.get_all_elements(node:nodes.NodeNG) -> Iterable[nodes.NodeNG]Recursively returns all atoms in nested lists and tuples.
func
pylint.checkers.utils.get_argument_from_call(call_node:nodes.Call, position:int | None=None, keyword:str | None=None) -> nodes.NameReturns the specified argument from a function call.
func
pylint.checkers.utils.get_import_name(importnode:ImportNode, modname:str | None) -> str | NoneGet a prepared module name from the given import node.
func
pylint.checkers.utils.get_inverse_comparator(op:str) -> strReturns the inverse comparator given a comparator.
func
pylint.checkers.utils.get_node_last_lineno(node:nodes.NodeNG) -> intGet the last lineno of the given node.
func
pylint.checkers.utils.get_subscript_const_value(node:nodes.Subscript) -> nodes.ConstReturns the value 'subscript.slice' of a Subscript node.
func
pylint.checkers.utils.in_type_checking_block(node:nodes.NodeNG) -> boolCheck if a node is guarded by a TYPE_CHECKING guard.
func
pylint.checkers.utils.infer_kwarg_from_call(call_node:nodes.Call, keyword:str) -> nodes.Name | NoneReturns the specified argument from a function's kwargs.
func
pylint.checkers.utils.is_assign_name_annotated_with(node:nodes.AssignName, typing_name:str) -> boolTest if AssignName node has `typing_name` annotation.
func
pylint.checkers.utils.is_being_called(node:nodes.NodeNG) -> boolReturn True if node is the function being called in a Call node.
func
pylint.checkers.utils.is_call_of_name(node:nodes.NodeNG, name:str) -> boolChecks if node is a function call with the given name.
func
pylint.checkers.utils.is_classdef_type(node:nodes.ClassDef) -> boolTest if ClassDef node is Type.
func
pylint.checkers.utils.is_defined_before(var_node:nodes.Name) -> boolCheck if the given variable node is defined before.
func
pylint.checkers.utils.is_error(node:nodes.FunctionDef) -> boolReturn true if the given function node only raises an exception.
func
pylint.checkers.utils.is_from_fallback_block(node:nodes.NodeNG) -> boolCheck if the given node is from a fallback import block.
func
pylint.checkers.utils.is_func_decorator(node:nodes.NodeNG) -> boolReturn true if the name is used in function decorator.
func
pylint.checkers.utils.is_hashable(node:nodes.NodeNG) -> boolReturn whether any inferred value of `node` is hashable.
func
pylint.checkers.utils.is_node_in_type_annotation_context(node:nodes.NodeNG) -> boolCheck if node is in type annotation context.
func
pylint.checkers.utils.is_overload_stub(node:nodes.NodeNG) -> boolCheck if a node is a function stub decorated with typing.overload.
func
pylint.checkers.utils.is_postponed_evaluation_enabled(node:nodes.NodeNG) -> boolCheck if the postponed evaluation of annotations is enabled.
func
pylint.checkers.utils.is_property_deleter(node:nodes.NodeNG) -> boolCheck if the given node is a property deleter.
func
pylint.checkers.utils.is_property_setter(node:nodes.NodeNG) -> boolCheck if the given node is a property setter.
func
pylint.checkers.utils.is_protocol_class(cls:nodes.NodeNG) -> boolCheck if the given node represents a protocol class.
func
pylint.checkers.utils.is_subclass_of(child:nodes.ClassDef, parent:nodes.ClassDef) -> boolCheck if first node is a subclass of second node.
func
pylint.checkers.utils.is_super(node:nodes.NodeNG) -> boolReturn True if the node is referencing the "super" builtin function.
func
pylint.checkers.utils.is_sys_guard(node:nodes.If) -> boolReturn True if IF stmt is a sys.version_info guard.
func
pylint.checkers.utils.node_frame_class(node:nodes.NodeNG) -> nodes.ClassDef | NoneReturn the class that is wrapping the given node.
func
pylint.checkers.utils.node_type(node:nodes.NodeNG) -> SuccessfulInferenceResult | NoneReturn the inferred type for `node`.
func
pylint.checkers.utils.overridden_method(klass:nodes.LocalsDictNodeNG, name:str | None) -> nodes.FunctionDef | NoneGet overridden method if any.
func
pylint.checkers.utils.safe_infer(node:nodes.NodeNG, context:InferenceContext | None=None, *compare_constants:bool=False, *compare_constructors:bool=False) -> InferenceResult | NoneReturn the inferred value for the given node.
func
pylint.checkers.utils.truncated_dict_suggestion(elements:Iterable[str]) -> strBuild a truncated dict literal suggestion from string elements.
class
pylint.checkers.variables.VariablesCheckerBaseChecker for variables.
method
pylint.checkers.variables.VariablesChecker.leave_classdef(node:nodes.ClassDef) -> NoneLeave class: update consumption analysis variable.
method
pylint.checkers.variables.VariablesChecker.leave_dictcomp(_:nodes.DictComp) -> NoneLeave dictcomp: update consumption analysis variable.
method
pylint.checkers.variables.VariablesChecker.leave_functiondef(node:nodes.FunctionDef) -> NoneLeave function: check function's locals are consumed.
method
pylint.checkers.variables.VariablesChecker.leave_generatorexp(_:nodes.GeneratorExp) -> NoneLeave genexpr: update consumption analysis variable.
method
pylint.checkers.variables.VariablesChecker.leave_lambda(_:nodes.Lambda) -> NoneLeave lambda: update consumption analysis variable.
method
pylint.checkers.variables.VariablesChecker.leave_listcomp(_:nodes.ListComp) -> NoneLeave listcomp: update consumption analysis variable.
method
pylint.checkers.variables.VariablesChecker.leave_module(node:nodes.Module) -> NoneLeave module: check globals.
method
pylint.checkers.variables.VariablesChecker.leave_setcomp(_:nodes.SetComp) -> NoneLeave setcomp: update consumption analysis variable.
method
pylint.checkers.variables.VariablesChecker.visit_classdef(node:nodes.ClassDef) -> NoneVisit class: update consumption analysis variable.
method
pylint.checkers.variables.VariablesChecker.visit_dictcomp(node:nodes.DictComp) -> NoneVisit dictcomp: update consumption analysis variable.
method
pylint.checkers.variables.VariablesChecker.visit_generatorexp(node:nodes.GeneratorExp) -> NoneVisit genexpr: update consumption analysis variable.
method
pylint.checkers.variables.VariablesChecker.visit_global(node:nodes.Global) -> NoneCheck names imported exists in the global scope.
method
pylint.checkers.variables.VariablesChecker.visit_import(node:nodes.Import) -> NoneCheck modules attribute accesses.
method
pylint.checkers.variables.VariablesChecker.visit_importfrom(node:nodes.ImportFrom) -> NoneCheck modules attribute accesses.
method
pylint.checkers.variables.VariablesChecker.visit_lambda(node:nodes.Lambda) -> NoneVisit lambda: update consumption analysis variable.
method
pylint.checkers.variables.VariablesChecker.visit_listcomp(node:nodes.ListComp) -> NoneVisit listcomp: update consumption analysis variable.
method
pylint.checkers.variables.VariablesChecker.visit_setcomp(node:nodes.SetComp) -> NoneVisit setcomp: update consumption analysis variable.
func
pylint.config._pylint_config.generate_command.handle_generate_command(linter:PyLinter) -> intHandle 'pylint-config generate'.
func
pylint.config._pylint_config.help_message.get_help(parser:argparse.ArgumentParser) -> strGet the help message for the main 'pylint-config' command.
func
pylint.config._pylint_config.help_message.get_subparser_help(linter:PyLinter, command:str) -> strGet the help message for one of the subcommands.
class
pylint.config._pylint_config.utils.InvalidUserInputRaised whenever a user input is invalid.
func
pylint.config._pylint_config.utils.get_and_validate_output_file() -> tuple[bool, Path]Make sure that the output file is correct.
func
pylint.config._pylint_config.utils.validate_yes_no(question:str, default:Literal['yes', 'no'] | None) -> boolValidate that a yes or no answer is correct.
func
pylint.config.find_default_config_files.find_default_config_files() -> Iterator[Path]Find all possible config files.
class
pylint.constants.MessageDisableReasonWhy a message was filtered out or disabled.
class
pylint.exceptions.EmptyReportErrorRaised when a report is empty and so should not be displayed.
class
pylint.exceptions.InvalidReporterErrorRaised when selected reporter is invalid (e.g.
class
pylint.exceptions.UnknownMessageErrorRaised when an unregistered message id is encountered.
method
pylint.extensions._check_docs_utils.Docstring.matching_sections() -> intReturns the number of matching docstring sections.
class
pylint.extensions._check_docs_utils.EpytextDocstringEpytext is similar to Sphinx.
func
pylint.extensions._check_docs_utils.get_setters_property(node:nodes.FunctionDef) -> nodes.FunctionDef | NoneGet the property node for the given setter node.
func
pylint.extensions._check_docs_utils.returns_something(return_node:nodes.Return) -> boolCheck if a return node returns a value other than None.
func
pylint.extensions._check_docs_utils.space_indentation(s:str) -> intThe number of leading spaces in a string.
class
pylint.extensions.broad_try_clause.BroadTryClauseCheckerChecks for try clauses with too many lines.
method
pylint.extensions.check_elif.ElseifUsedChecker.process_tokens(tokens:list[TokenInfo]) -> NoneProcess tokens and look for 'if' or 'elif'.
method
pylint.extensions.check_elif.ElseifUsedChecker.visit_if(node:nodes.If) -> NoneCurrent if node must directly follow an 'else'.
class
pylint.extensions.code_style.CodeStyleCheckerCheckers that can improve code consistency.
method
pylint.extensions.docparams.DocstringParameterChecker.visit_functiondef(node:nodes.FunctionDef) -> NoneCalled for function and method definitions (def).
class
pylint.extensions.docstyle.DocStringStyleCheckerChecks format of docstrings based on PEP 0257.
class
pylint.extensions.dunder.DunderCheckerChecks related to dunder methods.
func
pylint.extensions.empty_comment.comment_part_of_string(line:bytes, comment_idx:int) -> boolChecks if the symbol at comment_idx is part of a string.
func
pylint.extensions.initialize(linter:PyLinter) -> NoneInitialize linter with checkers in the extensions' directory.
class
pylint.extensions.magic_value.MagicValueCheckerChecks for constants in comparisons.
class
pylint.extensions.typing.TypingCheckerFind issue specifically related to type annotations.
class
pylint.graph.DotBackendDot File back-end.
method
pylint.graph.DotBackend.emit(line:str) -> NoneAdds <line> to final output.
method
pylint.graph.DotBackend.emit_edge(name1:str, name2:str, **props:Any) -> NoneEmit an edge from <name1> to <name2>.
method
pylint.graph.DotBackend.emit_node(name:str, **props:Any) -> NoneEmit a node with given properties.
method
pylint.graph.DotBackend.generate(outputfile:str | None=None, mapfile:str | None=None) -> strGenerates a graph file.
method
pylint.graph.DotBackend.get_source() -> strReturns self._source.
func
pylint.graph.normalize_node_id(nid:str) -> strReturns a suitable DOT node id for `nid`.
class
pylint.lint.pylinter.PyLinterLint Python modules using external checkers.
method
pylint.lint.pylinter.PyLinter.check_single_file_item(file:FileItem) -> NoneCheck single file item.
method
pylint.lint.pylinter.PyLinter.disable_reporters() -> NoneDisable all reporters.
method
pylint.lint.pylinter.PyLinter.enable_fail_on_messages() -> NoneEnable 'fail on' msgs.
method
pylint.lint.pylinter.PyLinter.generate_reports(verbose:bool=False) -> int | NoneClose the whole package /module, it's time to make reports !
method
pylint.lint.pylinter.PyLinter.get_checkers() -> list[BaseChecker]Return all available checkers as an ordered list.
method
pylint.lint.pylinter.PyLinter.initialize() -> NoneInitialize linter for linting.
method
pylint.lint.pylinter.PyLinter.load_plugin_configuration() -> NoneCall the configuration hook for plugins.
method
pylint.lint.pylinter.PyLinter.open() -> NoneInitialize counters.
method
pylint.lint.pylinter.PyLinter.register_checker(checker:checkers.BaseChecker) -> NoneThis method auto registers the checker.
method
pylint.lint.pylinter.PyLinter.register_reporter(reporter_class:type[reporters.BaseReporter]) -> NoneRegisters a reporter class on the _reporters attribute.
method
pylint.lint.pylinter.PyLinter.set_reporter(reporter:reporters.BaseReporter | reporters.MultiReporter) -> NoneSet the reporter used to display messages and reports.
method
pylint.lint.pylinter.PyLinter.should_analyze_file(modname:str, path:str, is_argument:bool=False) -> boolReturns whether a module should be checked.
func
pylint.lint.report_functions.report_messages_by_module_stats(sect:Section, stats:LinterStats, _:LinterStats | None) -> NoneMake errors / warnings by modules report.
func
pylint.lint.report_functions.report_messages_stats(sect:Section, stats:LinterStats, _:LinterStats | None) -> NoneMake messages type report.
func
pylint.lint.report_functions.report_total_messages_stats(sect:Section, stats:LinterStats, previous_stats:LinterStats | None) -> NoneMake total errors / warnings report.
class
pylint.lint.run.RunHelper class to use as main for pylint with 'run(*sys.argv[1:])'.
func
pylint.message._deleted_message_ids.is_deleted_msgid(msgid:str) -> str | NoneReturn the explanation for removal if the message was removed.
func
pylint.message._deleted_message_ids.is_deleted_symbol(symbol:str) -> str | NoneReturn the explanation for removal if the message was removed.
class
pylint.message.message.MessageThis class represent a message to be issued by the reporters.
method
pylint.message.message.Message.format(template:str) -> strFormat the message according to the given template.
func
pylint.modify_sys_path() -> NoneModify sys path for execution as Python module.
class
pylint.pyreverse.diadefslib.DiaDefGeneratorHandle diagram generation options.
method
pylint.pyreverse.diadefslib.DiaDefGenerator.add_class(node:nodes.ClassDef) -> NoneVisit one class and add it to diagram.
method
pylint.pyreverse.diadefslib.DiaDefGenerator.extract_classes(klass_node:nodes.ClassDef, anc_level:int, association_level:int) -> NoneExtract recursively classes related to klass_node.
method
pylint.pyreverse.diadefslib.DiaDefGenerator.get_ancestors(node:nodes.ClassDef, level:int) -> Generator[nodes.ClassDef]Return ancestor nodes of a class node.
method
pylint.pyreverse.diadefslib.DiaDefGenerator.get_associated(klass_node:nodes.ClassDef, level:int) -> Generator[nodes.ClassDef]Return associated nodes of a class node.
method
pylint.pyreverse.diadefslib.DiaDefGenerator.get_title(node:nodes.ClassDef) -> strGet title for objects.
method
pylint.pyreverse.diadefslib.DiaDefGenerator.show_node(node:nodes.ClassDef) -> boolDetermine if node should be shown based on config.
class
pylint.pyreverse.diadefslib.DiadefsHandlerGet diagram definitions from user (i.e.
method
pylint.pyreverse.diadefslib.DiadefsHandler.get_diadefs(project:Project, linker:Linker) -> list[ClassDiagram]Get the diagram's configuration data.
class
pylint.pyreverse.diagrams.ClassDiagramMain class diagram handling.
method
pylint.pyreverse.diagrams.ClassDiagram.add_object(title:str, node:nodes.ClassDef) -> NoneCreate a diagram object.
method
pylint.pyreverse.diagrams.ClassDiagram.add_relationship(from_object:DiagramEntity, to_object:DiagramEntity, relation_type:str, name:str | None=None) -> NoneCreate a relationship.
method
pylint.pyreverse.diagrams.ClassDiagram.class_names(nodes_lst:Iterable[nodes.NodeNG]) -> list[str]Return class names if needed in diagram.
method
pylint.pyreverse.diagrams.ClassDiagram.classe(name:str) -> ClassEntityReturn a class by its name, raise KeyError if not found.
method
pylint.pyreverse.diagrams.ClassDiagram.classes() -> list[ClassEntity]Return all class nodes in the diagram.
method
pylint.pyreverse.diagrams.ClassDiagram.extract_relationships() -> NoneExtract relationships between nodes in the diagram.
method
pylint.pyreverse.diagrams.ClassDiagram.get_attrs(node:nodes.ClassDef) -> list[str]Return visible attributes, possibly with class name.
method
pylint.pyreverse.diagrams.ClassDiagram.get_methods(node:nodes.ClassDef) -> list[nodes.FunctionDef]Return visible methods.
method
pylint.pyreverse.diagrams.ClassDiagram.get_relationship(from_object:DiagramEntity, relation_type:str) -> RelationshipReturn a relationship or None.
method
pylint.pyreverse.diagrams.ClassDiagram.has_node(node:nodes.NodeNG) -> boolReturn true if the given node is included in the diagram.
method
pylint.pyreverse.diagrams.ClassDiagram.object_from_node(node:nodes.NodeNG) -> DiagramEntityReturn the diagram object mapped to node.
class
pylint.pyreverse.diagrams.ClassEntityA diagram object representing a class.
class
pylint.pyreverse.diagrams.DiagramEntityA diagram object, i.e.
class
pylint.pyreverse.diagrams.FigureBase class for counter handling.
class
pylint.pyreverse.diagrams.PackageDiagramPackage diagram handling.
method
pylint.pyreverse.diagrams.PackageDiagram.add_from_depend(node:nodes.ImportFrom, from_module:str) -> NoneAdd dependencies created by from-imports.
method
pylint.pyreverse.diagrams.PackageDiagram.add_object(title:str, node:nodes.Module) -> NoneCreate a diagram object.
method
pylint.pyreverse.diagrams.PackageDiagram.module(name:str) -> PackageEntityReturn a module by its name, raise KeyError if not found.
method
pylint.pyreverse.diagrams.PackageDiagram.modules() -> list[PackageEntity]Return all module nodes in the diagram.
class
pylint.pyreverse.diagrams.PackageEntityA diagram object representing a package.
class
pylint.pyreverse.diagrams.RelationshipA relationship from an object in the diagram to another.
class
pylint.pyreverse.inspector.AssociationsHandlerHandle regular association relationships.
class
pylint.pyreverse.inspector.IdGeneratorMixInMixin adding the ability to generate integer uid.
method
pylint.pyreverse.inspector.IdGeneratorMixIn.generate_id() -> intGenerate a new identifier.
method
pylint.pyreverse.inspector.IdGeneratorMixIn.init_counter(start_value:int=0) -> NoneInit the id counter.
class
pylint.pyreverse.inspector.LinkerWalk on the project tree and resolve relationships.
method
pylint.pyreverse.inspector.Linker.compute_module(context_name:str, mod_path:str) -> boolShould the module be added to dependencies ?
method
pylint.pyreverse.inspector.Linker.handle_assignattr_type(node:nodes.AssignAttr, info:ClassInfo) -> NoneHandle an astroid.assignattr node.
method
pylint.pyreverse.inspector.Linker.visit_assignname(node:nodes.AssignName) -> NoneVisit an AssignName node and update locals_type for its frame.
method
pylint.pyreverse.inspector.Linker.visit_classdef(node:nodes.ClassDef) -> NoneVisit an nodes.Class node and optionally assign a unique id.
method
pylint.pyreverse.inspector.Linker.visit_import(node:nodes.Import) -> NoneVisit an nodes.Import node.
method
pylint.pyreverse.inspector.Linker.visit_importfrom(node:nodes.ImportFrom) -> NoneVisit an nodes.ImportFrom node.
method
pylint.pyreverse.inspector.Linker.visit_module(node:nodes.Module) -> NoneVisit an nodes.Module node and optionally assign a unique id.
class
pylint.pyreverse.inspector.ProjectA project handle a set of modules / packages.
func
pylint.pyreverse.inspector.resolve_to_class_def(types:set[nodes.NodeNG]) -> set[nodes.ClassDef]Resolve a set of nodes to ClassDef nodes.
method
pylint.pyreverse.main.Run.run() -> intChecking arguments and run project.
class
pylint.pyreverse.mermaidjs_printer.MermaidJSPrinterPrinter for MermaidJS diagrams.
method
pylint.pyreverse.mermaidjs_printer.MermaidJSPrinter.emit_node(name:str, type_:NodeType, properties:NodeProperties | None=None) -> NoneCreate a new node.
class
pylint.pyreverse.node_info.ClassInfoAnalysis info for ClassDef nodes.
class
pylint.pyreverse.node_info.FunctionInfoAnalysis info for FunctionDef nodes.
class
pylint.pyreverse.node_info.ModuleInfoAnalysis info for Module nodes.
class
pylint.pyreverse.plantuml_printer.PlantUmlPrinterPrinter for PlantUML diagrams.
method
pylint.pyreverse.plantuml_printer.PlantUmlPrinter.emit_node(name:str, type_:NodeType, properties:NodeProperties | None=None) -> NoneCreate a new node.
class
pylint.pyreverse.printer.PrinterBase class defining the interface for a printer.
method
pylint.pyreverse.printer.Printer.emit_node(name:str, type_:NodeType, properties:NodeProperties | None=None) -> NoneCreate a new node.
method
pylint.pyreverse.printer.Printer.generate(outputfile:str) -> NoneGenerate and save the final outputfile.
class
pylint.pyreverse.utils.FilterMixInFilter nodes according to a mode and nodes' visibility.
method
pylint.pyreverse.utils.FilterMixIn.show_attr(node:nodes.NodeNG | str) -> boolReturn true if the node should be treated.
class
pylint.pyreverse.utils.LocalsVisitorVisit a project by traversing the locals dictionary.
method
pylint.pyreverse.utils.LocalsVisitor.get_callbacks(node:nodes.NodeNG) -> _CallbackTupleTGet callbacks from handler for the visited node.
method
pylint.pyreverse.utils.LocalsVisitor.visit(node:nodes.NodeNG) -> AnyLaunch the visit starting from the given node.
func
pylint.pyreverse.utils.get_annotation(node:nodes.AssignAttr | nodes.AssignName) -> nodes.Name | nodes.Subscript | NoneReturn the annotation for `node`.
func
pylint.pyreverse.utils.get_default_options() -> list[str]Read config file and return list of options.
func
pylint.pyreverse.utils.get_visibility(name:str) -> strReturn the visibility from a name: public, protected, private or special.
func
pylint.pyreverse.utils.insert_default_options() -> NoneInsert default options to sys.argv.
class
pylint.pyreverse.writer.DiagramWriterBase class for writing project diagrams.
method
pylint.pyreverse.writer.DiagramWriter.get_class_properties(obj:ClassEntity) -> NodePropertiesGet label and shape for classes.
method
pylint.pyreverse.writer.DiagramWriter.get_package_properties(obj:PackageEntity) -> NodePropertiesGet label and shape for packages.
method
pylint.pyreverse.writer.DiagramWriter.get_shape_color(obj:DiagramEntity) -> strGet shape color.
method
pylint.pyreverse.writer.DiagramWriter.save() -> NoneWrite to disk.
method
pylint.pyreverse.writer.DiagramWriter.set_printer(file_name:str, basename:str) -> NoneSet printer.
method
pylint.pyreverse.writer.DiagramWriter.write(diadefs:Iterable[ClassDiagram | PackageDiagram]) -> NoneWrite files for <project> according to <diadefs>.
method
pylint.pyreverse.writer.DiagramWriter.write_classes(diagram:ClassDiagram) -> NoneWrite a class diagram.
method
pylint.pyreverse.writer.DiagramWriter.write_packages(diagram:PackageDiagram) -> NoneWrite a package diagram.
class
pylint.reporters.base_reporter.BaseReporterBase class for reporters.
method
pylint.reporters.base_reporter.BaseReporter.display_messages(layout:Section | None) -> NoneHook for displaying the messages of the reporter.
method
pylint.reporters.base_reporter.BaseReporter.display_reports(layout:Section) -> NoneDisplay results encapsulated in the layout tree.
method
pylint.reporters.base_reporter.BaseReporter.handle_message(msg:Message) -> NoneHandle a new message triggered on the current file.
method
pylint.reporters.base_reporter.BaseReporter.on_close(stats:LinterStats, previous_stats:LinterStats | None) -> NoneHook called when a module finished analyzing.
method
pylint.reporters.base_reporter.BaseReporter.on_set_current_module(module:str, filepath:str | None) -> NoneHook called when a module starts to be analysed.
method
pylint.reporters.base_reporter.BaseReporter.writeln(string:str='') -> NoneWrite a line in the output buffer.
class
pylint.reporters.collecting_reporter.CollectingReporterCollects messages.
func
pylint.reporters.initialize(linter:PyLinter) -> NoneInitialize linter with reporters in this package.
class
pylint.reporters.json_reporter.JSONReporterReport messages and layouts in JSON.
method
pylint.reporters.json_reporter.JSONReporter.display_messages(layout:Section | None) -> NoneLaunch layouts display.
method
pylint.reporters.json_reporter.JSONReporter.display_reports(layout:Section) -> NoneDon't do anything in this reporter.
class
pylint.reporters.multi_reporter.MultiReporterReports messages and layouts in plain text.
method
pylint.reporters.multi_reporter.MultiReporter.display_messages(layout:Section | None) -> NoneHook for displaying the messages of the reporter.
method
pylint.reporters.multi_reporter.MultiReporter.display_reports(layout:Section) -> NoneDisplay results encapsulated in the layout tree.
method
pylint.reporters.multi_reporter.MultiReporter.handle_message(msg:Message) -> NoneHandle a new message triggered on the current file.
method
pylint.reporters.multi_reporter.MultiReporter.on_close(stats:LinterStats, previous_stats:LinterStats | None) -> NoneHook called when a module finished analyzing.
method
pylint.reporters.multi_reporter.MultiReporter.on_set_current_module(module:str, filepath:str | None) -> NoneHook called when a module starts to be analysed.
method
pylint.reporters.multi_reporter.MultiReporter.writeln(string:str='') -> NoneWrite a line in the output buffer.
class
pylint.reporters.progress_reporters.ProgressReporterProgress reporter.
class
pylint.reporters.text.ColorizedTextReporterSimple TextReporter that colorizes text output.
method
pylint.reporters.text.ColorizedTextReporter.set_fail_on_symbols(fail_on_symbols:list[str]) -> NoneSets the list of configured fail-on symbols.
class
pylint.reporters.text.MessageStyleStyling of a message.
class
pylint.reporters.text.TextReporterReports messages and layouts in plain text.
method
pylint.reporters.text.TextReporter.handle_message(msg:Message) -> NoneManage message of different type and in the context of path.
class
pylint.reporters.text.VSTextReporterVisual studio text reporter.
func
pylint.reporters.text.colorize_ansi(msg:str, msg_style:MessageStyle) -> strColorize message by wrapping it with ANSI escape codes.
class
pylint.reporters.ureports.base_writer.BaseWriterBase class for ureport writers.
method
pylint.reporters.ureports.base_writer.BaseWriter.begin_format() -> NoneBegin to format a layout.
method
pylint.reporters.ureports.base_writer.BaseWriter.end_format() -> NoneFinished formatting a layout.
method
pylint.reporters.ureports.base_writer.BaseWriter.get_table_content(table:Table) -> list[list[str]]Trick to get table content without actually writing it.
method
pylint.reporters.ureports.base_writer.BaseWriter.write(string:str) -> NoneWrite a string in the output buffer.
method
pylint.reporters.ureports.base_writer.BaseWriter.writeln(string:str='') -> NoneWrite a line in the output buffer.
class
pylint.reporters.ureports.nodes.BaseLayoutBase container node.
method
pylint.reporters.ureports.nodes.BaseLayout.add_text(text:str) -> NoneShortcut to add text data.
method
pylint.reporters.ureports.nodes.BaseLayout.append(child:VNode) -> NoneAdd a node to children.
method
pylint.reporters.ureports.nodes.BaseLayout.insert(index:int, child:VNode) -> NoneInsert a child node.
method
pylint.reporters.ureports.nodes.BaseLayout.parents() -> list[BaseLayout]Return the ancestor nodes.
class
pylint.reporters.ureports.nodes.ParagraphA simple text paragraph.
class
pylint.reporters.ureports.nodes.SectionA section.
class
pylint.reporters.ureports.nodes.TableSome tabular data.
class
pylint.reporters.ureports.nodes.TextA text portion.
class
pylint.reporters.ureports.nodes.TitleA title.
class
pylint.reporters.ureports.nodes.VerbatimTextA verbatim text, display the raw data.
func
pylint.run_pylint(argv:Sequence[str] | None=None) -> NoneRun pylint.
func
pylint.run_pyreverse(argv:Sequence[str] | None=None) -> NoReturnRun pyreverse.
func
pylint.run_symilar(argv:Sequence[str] | None=None) -> NoReturnRun symilar.
func
pylint.testutils._primer.comparator.format_span(msg:JSONMessage) -> strFormat a message's location as ``line:col to endLine:endCol``.
class
pylint.testutils._primer.package_to_lint.DirtyPrimerDirectoryExceptionWe can't pull if there's local changes.
class
pylint.testutils._primer.primer.PrimerMain class to handle priming of packages.
class
pylint.testutils._primer.primer_command.PrimerCommandGeneric primer action with required arguments.
func
pylint.testutils.decorator.set_config(**kwargs:Any) -> Callable[[Callable[..., None]], Callable[..., None]]Decorator for setting an option on the linter.
class
pylint.testutils.functional.lint_module_output_update.LintModuleOutputUpdate.TestDialectDialect used by the csv writer.
class
pylint.testutils.pyreverse.PyreverseConfigHolds the configuration options for Pyreverse.
class
pylint.testutils.reporter_for_tests.GenericTestReporterReporter storing plain text messages.
method
pylint.testutils.reporter_for_tests.GenericTestReporter.display_reports(layout:Section) -> NoneIgnore layouts.
method
pylint.testutils.reporter_for_tests.GenericTestReporter.handle_message(msg:Message) -> NoneAppend messages to the list of messages of the reporter.
class
pylint.testutils.unittest_linter.UnittestLinterA fake linter class to capture checker messages.
func
pylint.testutils.utils.create_files(paths:list[str], chroot:str='.') -> NoneCreates directories and files found in <path>.
class
pylint.typing.FileItemRepresents data about a file handled by pylint.
class
pylint.typing.ManagedMessageTuple with information about a managed message of the linter.
class
pylint.typing.ModuleDescriptionDictRepresents data about a checked module.
func
pylint.utils.docs.print_full_documentation(linter:PyLinter, stream:TextIO=sys.stdout, show_options:bool=True) -> NoneOutput a full documentation in ReST format.
class
pylint.utils.file_state.FileStateHold internal state specific to the currently analyzed file.
method
pylint.utils.file_state.FileState.handle_ignored_message(state_scope:MessageDisableReason | None, msgid:str, line:int | None) -> NoneReport an ignored message.
class
pylint.utils.linterstats.BadNamesTypedDict to store counts of node types with bad names.
class
pylint.utils.linterstats.CodeTypeCountTypedDict to store counts of lines of code types.
class
pylint.utils.linterstats.DuplicatedLinesTypedDict to store counts of lines of duplicated code.
class
pylint.utils.linterstats.LinterStatsClass used to linter stats.
method
pylint.utils.linterstats.LinterStats.get_code_count(type_name:Literal['code', 'comment', 'docstring', 'empty', 'total']) -> intGet a code type count.
method
pylint.utils.linterstats.LinterStats.get_global_message_count(type_name:str) -> intGet a global message count.
method
pylint.utils.linterstats.LinterStats.get_module_message_count(modname:str, type_name:MessageTypesFullName) -> intGet a module message count.
method
pylint.utils.linterstats.LinterStats.get_undocumented(node_name:Literal['function', 'class', 'method', 'module']) -> floatGet a undocumented node count.
method
pylint.utils.linterstats.LinterStats.increase_bad_name(node_name:str, increase:int) -> NoneIncrease a bad names node count.
method
pylint.utils.linterstats.LinterStats.reset_bad_names() -> NoneResets the bad_names attribute.
method
pylint.utils.linterstats.LinterStats.reset_code_count() -> NoneResets the code_type_count attribute.
method
pylint.utils.linterstats.LinterStats.reset_duplicated_lines() -> NoneResets the duplicated_lines attribute.
method
pylint.utils.linterstats.LinterStats.reset_message_count() -> NoneResets the message type count of the stats object.
method
pylint.utils.linterstats.LinterStats.reset_node_count() -> NoneResets the node count attribute.
method
pylint.utils.linterstats.LinterStats.reset_undocumented() -> NoneResets the undocumented attribute.
class
pylint.utils.linterstats.NodeCountTypedDict to store counts of different types of nodes.
class
pylint.utils.linterstats.UndocumentedNodesTypedDict to store counts of undocumented node types.
class
pylint.utils.pragma_parser.InvalidPragmaErrorThrown in case the pragma is invalid.
class
pylint.utils.pragma_parser.PragmaParserErrorA class for exceptions thrown by pragma_parser module.
class
pylint.utils.pragma_parser.UnRecognizedOptionErrorThrown in case the of a valid but unrecognized option.
func
pylint.utils.utils.format_section(stream:TextIO, section:str, options:list[tuple[str, OptionDict, Any]], doc:str | None=None) -> NoneFormat an option's section using the INI format.
func
pylint.utils.utils.get_module_and_frameid(node:nodes.NodeNG) -> tuple[str, str]Return the module name and the frame id in the module.
func
pylint.utils.utils.normalize_text(text:str, line_len:int=DEFAULT_LINE_LENGTH, indent:str='') -> strWrap the text on the given line length.
func
script.check_newsfragments.check_file(file:Path, verbose:bool) -> boolCheck that a file contains a valid changelog entry.
func
script.get_unused_message_id_category.register_all_checkers_and_plugins(linter:PyLinter) -> NoneRegisters all checkers and plugins.
この情報について
掲載しているシグネチャは pylint-dev/pylint の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。