Lines Matching refs:str
493 if name is not None and not isinstance(name, str):
931 isinstance(year, (bytes, str)) and len(year) == 4 and
934 if isinstance(year, str):
982 if not isinstance(date_string, str):
983 raise TypeError('fromisoformat: argument must be str')
1041 if not isinstance(fmt, str):
1042 raise TypeError("must be str, not %s" % type(fmt).__name__)
1045 return str(self)
1350 if (isinstance(hour, (bytes, str)) and len(hour) == 6 and
1353 if isinstance(hour, str):
1540 if not isinstance(time_string, str):
1541 raise TypeError('fromisoformat: argument must be str')
1566 if not isinstance(fmt, str):
1567 raise TypeError("must be str, not %s" % type(fmt).__name__)
1570 return str(self)
1679 if (isinstance(year, (bytes, str)) and len(year) == 10 and
1682 if isinstance(year, str):
1829 if not isinstance(date_string, str):
1830 raise TypeError('fromisoformat: argument must be str')
2046 ", ".join(map(str, L)))
2056 "Convert to string, for str()."
2309 elif not isinstance(name, str):