from typing import Any
def main(contents: Any, commit: str | None) -> None:
if (
contents.get("commit") == commit
and (commit is not None or print("can_be_reached"))
):
pass
main({"commit": None}, None)
mypy 1.19.1 with --warn-unreachable gives main.py:6: error: Right operand of "or" is never evaluated [unreachable]