class_docstr: Manage a Flake8 user's style guide.
docstr: Check if this StyleGuide applies to the file.
  
  :param filename:
      The name of the file with violations that we're potentially
      applying this StyleGuide to.
  :returns:
      True if this applies, False otherwise
docstr_tok: ["Check","if","this","StyleGuide","applies","to","the","file",".",":","param","filename",":","The","name","of","the","file","with","violations","that","we","'re","potentially","applying","this","StyleGuide","to",".",":","returns",":","True","if","this","applies",",","False","otherwise"]
code: def applies_to(self, filename: str) -> bool:
      """Check if this StyleGuide applies to the file.
  
      :param filename:
          The name of the file with violations that we're potentially
          applying this StyleGuide to.
      :returns:
          True if this applies, False otherwise
      """
      if self.filename is None:
          return True
      return utils.matches_filename(
          filename,
          patterns=[self.filename],
          log_message=f'{self!r} does %(whether)smatch "%(path)s"',
          logger=LOG,
      )
  
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 5 for calling the StyleGuide obj's underlying member method code with example usage: obj.applies_to(filename) and returns: utils, True