class_docstr: Manage running checks for a file and aggregate the results.
class_docstr_tok: ["Manage","running","checks","for","a","file","and","aggregate","the","results","."]
docstr: Run physical checks if and only if it is at the end of the line.
code: def check_physical_eol(
      self, token: tokenize.TokenInfo, prev_physical: str
  ) -> None:
      """Run physical checks if and only if it is at the end of the line."""
      assert self.processor is not None
      if token.type == FSTRING_START:  # pragma: >=3.12 cover
          self.processor.fstring_start(token.start[0])
      # a newline token ends a single physical line.
      elif processor.is_eol_token(token):
          # if the file does not end with a newline, the NEWLINE
          # token is inserted by the parser, but it does not contain
          # the previous physical line in `token[4]`
          if token.line == "":
              self.run_physical_checks(prev_physical)
          else:
              self.run_physical_checks(token.line)
      elif processor.is_multiline_string(token):
          # Less obviously, a string that contains newlines is a
          # multiline string, either triple-quoted or with internal
          # newlines backslash-escaped. Check every physical line in the
          # string *except* for the last one: its newline is outside of
          # the multiline string, so we consider it a regular physical
          # line, and will check it like any other physical line.
          #
          # Subtleties:
          # - have to wind self.line_number back because initially it
          #   points to the last line of the string, and we want
          #   check_physical() to give accurate feedback
          for line in self.processor.multiline_string(token):
              self.run_physical_checks(line)
  
imports: from __future__ import annotations
  import argparse
  import contextlib
  import errno
  import logging
  import multiprocessing.pool
  import operator
  import signal
  import tokenize
  from typing import Any
  from typing import Generator
  from typing import List
  from typing import Optional
  from typing import Sequence
  from typing import Tuple
  from flake8 import defaults
  from flake8 import exceptions
  from flake8 import processor
  from flake8 import utils
  from flake8._compat import FSTRING_START
  from flake8.discover_files import expand_paths
  from flake8.options.parse_args import parse_args
  from flake8.plugins.finder import Checkers
  from flake8.plugins.finder import LoadedPlugin
  from flake8.style_guide import StyleGuideManager
label_desc: Use image node_id 13 for calling the FileChecker obj's underlying member method code with example usage: obj.check_physical_eol(token, prev_physical) without return types