def METHOD_NAME(
    self, section: int, orientation: Qt.Orientation, role: int = ...
):
    if (
        role == Qt.ItemDataRole.DisplayRole
        and orientation == Qt.Orientation.Horizontal
    ):
        with contextlib.suppress(IndexError):
            return _HEADER_DATA[section]
    return None