Lines Matching refs:str
401 if isinstance(value, str):
580 ' int, str, float, etc.)'
634 if isinstance(_order_, str):
856 if isinstance(names, str):
858 if isinstance(names, (tuple, list)) and names and isinstance(names[0], str):
868 if isinstance(item, str):
1222 return str.__format__(str(self), format_spec)
1251 Only changes the repr(), leaving str() and format() to the mixed-in type.
1261 class StrEnum(str, ReprEnum):
1267 "values must already be of type `str`"
1269 raise TypeError('too many arguments for str(): %r' % (values, ))
1272 if not isinstance(values[0], str):
1276 if not isinstance(values[1], str):
1280 if not isinstance(values[2], str):
1282 value = str(*values)
1283 member = str.__new__(cls, value)
1863 enum_type, cls_name, ', '.join((str(m) for m in missing)))