(name)
| 533 | |
| 534 | # Just raise TypeError if the arg isn't None or a string. |
| 535 | def _check_tzname(name): |
| 536 | if name is not None and not isinstance(name, str): |
| 537 | raise TypeError("tzinfo.tzname() must return None or string, " |
| 538 | f"not {type(name).__name__!r}") |
| 539 | |
| 540 | # name is the offset-producing method, "utcoffset" or "dst". |
| 541 | # offset is what it returned. |
no test coverage detected