docs: def _extract_seq(extractor, seq):
      """Convert a sequence to primitive equivalents."""
      subtype = Any
      if seq.__args__ and seq.__args__[0] is not Any:
          subtype = seq.__args__[0]
      return _array_type(extractor.extract(subtype))