class_docstr: Manage a Flake8 user's style guide.
docstr: Handle an error reported by a check.
  
  :param code:
      The error code found, e.g., E123.
  :param filename:
      The file in which the error was found.
  :param line_number:
      The line number (where counting starts at 1) at which the error
      occurs.
  :param column_number:
      The column number (where counting starts at 1) at which the error
      occurs.
  :param text:
      The text of the error message.
  :param physical_line:
      The actual physical line causing the error.
  :returns:
      1 if the error was reported. 0 if it was ignored. This is to allow
      for counting of the number of errors found that were not ignored.
docstr_tok: ["Handle","an","error","reported","by","a","check",".",":","param","code",":","The","error","code","found",",","e.g.",",","E123",".",":","param","filename",":","The","file","in","which","the","error","was","found",".",":","param","line_number",":","The","line","number","(","where","counting","starts","at","1",")","at","which","the","error","occurs",".",":","param","column_number",":","The","column","number","(","where","counting","starts","at","1",")","at","which","the","error","occurs",".",":","param","text",":","The","text","of","the","error","message",".",":","param","physical_line",":","The","actual","physical","line","causing","the","error",".",":","returns",":","1","if","the","error","was","reported",".","0","if","it","was","ignored",".","This","is","to","allow","for","counting","of","the","number","of","errors","found","that","were","not","ignored","."]
code: def handle_error(
      self,
      code: str,
      filename: str,
      line_number: int,
      column_number: int,
      text: str,
      physical_line: str | None = None,
  ) -> int:
      """Handle an error reported by a check.
  
      :param code:
          The error code found, e.g., E123.
      :param filename:
          The file in which the error was found.
      :param line_number:
          The line number (where counting starts at 1) at which the error
          occurs.
      :param column_number:
          The column number (where counting starts at 1) at which the error
          occurs.
      :param text:
          The text of the error message.
      :param physical_line:
          The actual physical line causing the error.
      :returns:
          1 if the error was reported. 0 if it was ignored. This is to allow
          for counting of the number of errors found that were not ignored.
      """
      disable_noqa = self.options.disable_noqa
      # NOTE(sigmavirus24): Apparently we're provided with 0-indexed column
      # numbers so we have to offset that here.
      if not column_number:
          column_number = 0
      error = Violation(
          code,
          filename,
          line_number,
          column_number + 1,
          text,
          physical_line,
      )
      error_is_selected = (
          self.should_report_error(error.code) is Decision.Selected
      )
      is_not_inline_ignored = (
          error.is_inline_ignored(disable_noqa) is False
      )
      if error_is_selected and is_not_inline_ignored:
          self.formatter.handle(error)
          self.stats.record(error)
          return 1
      return 0
  
imports: from __future__ import annotations
  import argparse
  import contextlib
  import copy
  import enum
  import functools
  import logging
  from typing import Generator
  from typing import Sequence
  from flake8 import defaults
  from flake8 import statistics
  from flake8 import utils
  from flake8.formatting import base
  from flake8.violation import Violation
label_desc: Use image node_id 7 for calling the StyleGuide obj's underlying member method code with example usage: obj.handle_error(code, filename, line_number, column_number, text, physical_line) and returns: int, int