docs: def check(self, version):  # Ignore PyDocStyleBear
          """Check if `version` fits into our dependency specification.
  
          :param version: str
          :return: bool
          """
  
          def _compare_spec(spec):
              if len(spec) == 1:
                  spec = ("=", spec[0])
  
              token = Tokens.operators.index(spec[0])
              comparison = compare_version(version, spec[1])
              if token in [Tokens.EQ1, Tokens.EQ2]:
                  return comparison == 0
              elif token == Tokens.GT:
                  return comparison == 1
              elif token == Tokens.LT:
                  return comparison == -1
              elif token == Tokens.GTE:
                  return comparison >= 0
              elif token == Tokens.LTE:
                  return comparison <= 0
              elif token == Tokens.NEQ:
                  return comparison != 0
              else:
                  raise ValueError("Invalid comparison token")
  
          results, intermediaries = False, False
          for spec in self.spec:
              if isinstance(spec, list):
                  intermediary = True
                  for sub in spec:
                      intermediary &= _compare_spec(sub)
                  intermediaries |= intermediary
              elif isinstance(spec, tuple):
                  results |= _compare_spec(spec)
  
          return results or intermediaries