def test_metaclass_alias() -> None:
    """GitMeta aliases Git's metaclass, whether that is type or a custom metaclass."""

    def accept_metaclass_instance(cls: GitMeta) -> None:
        """Check that cls is statically recognizable as an instance of GitMeta."""

    accept_metaclass_instance(Git)  # assert_type would expect Type[Git], not GitMeta.

    # This comes after the static check, just in case it would affect the inference.
    assert type(Git) is GitMeta
GitMeta aliases Git's metaclass, whether that is type or a custom metaclass.
test/deprecation/test_cmd_git.py