``text_type`` can be removed here and in the import.