def _get_string_slice(self, key: str):
    (parsed, reso) = self._parse_with_reso(key)
    try:
        return self._partial_date_slice(reso, parsed)
    except KeyError as err:
        raise KeyError(key) from err
def _get_string_slice(self, key: str):
    (parsed, reso) = self._parse_with_reso(key)
    try:
        return self._partial_date_slice(reso, parsed)
    except KeyError as err:
        raise KeyError(key) from err