def test_cannot_access_undefined() -> None:
    """Accessing a bogus attribute in git.types remains a dynamic and static error."""
    with pytest.raises(AttributeError):
        git.types.foo  # type: ignore[attr-defined]
Accessing a bogus attribute in git.types remains a dynamic and static error.
test/deprecation/test_types.py