def test_cannot_import_undefined() -> None:
    """Importing a bogus attribute from git remains a dynamic and static error."""
    with pytest.raises(ImportError):
        from git import foo  # type: ignore[attr-defined]  # noqa: F401
Importing a bogus attribute from git remains a dynamic and static error.
test/deprecation/test_toplevel.py