in mime_types.py [0:0]
def is_text(mime: str) -> bool: """Returns whether the content is a human-readable text.""" return mime in INPUT_TEXT_TYPES or mime.startswith('text/')