class_docstr: Class representing a violation reported by Flake8.
class_docstr_tok: ["Class","representing","a","violation","reported","by","Flake8","."]
docstr: Determine if a comment has been added to ignore this line.
  
  :param disable_noqa:
      Whether or not users have provided ``--disable-noqa``.
  :returns:
      True if error is ignored in-line, False otherwise.
docstr_tok: ["Determine","if","a","comment","has","been","added","to","ignore","this","line",".",":","param","disable_noqa",":","Whether","or","not","users","have","provided","``","--","disable-noqa","``",".",":","returns",":","True","if","error","is","ignored","in-line",",","False","otherwise","."]
code: def is_inline_ignored(self, disable_noqa: bool) -> bool:
      """Determine if a comment has been added to ignore this line.
  
      :param disable_noqa:
          Whether or not users have provided ``--disable-noqa``.
      :returns:
          True if error is ignored in-line, False otherwise.
      """
      physical_line = self.physical_line
      # TODO(sigmavirus24): Determine how to handle stdin with linecache
      if disable_noqa:
          return False
  
      if physical_line is None:
          physical_line = linecache.getline(
              self.filename, self.line_number
          )
      noqa_match = _find_noqa(physical_line)
      if noqa_match is None:
          LOG.debug("%r is not inline ignored", self)
          return False
  
      codes_str = noqa_match.groupdict()["codes"]
      if codes_str is None:
          LOG.debug("%r is ignored by a blanket ``# noqa``", self)
          return True
  
      codes = set(utils.parse_comma_separated_list(codes_str))
      if self.code in codes or self.code.startswith(tuple(codes)):
          LOG.debug(
              "%r is ignored specifically inline with ``# noqa: %s``",
              self,
              codes_str,
          )
          return True
  
      LOG.debug(
          "%r is not ignored inline with ``# noqa: %s``",
          self,
          codes_str,
      )
      return False
  
file_path: flake8/src/flake8/violation.py
imports: from __future__ import annotations
  import functools
  import linecache
  import logging
  from typing import Match
  from typing import NamedTuple
  from flake8 import defaults
  from flake8 import utils
label_desc: Use image node_id 1 for calling the Violation obj's underlying member method code with example usage: obj.is_inline_ignored(disable_noqa) and returns: False, False, False, True, True