def test_mapping_parameterized() -> None:
    """https://github.com/pydantic/pydantic/issues/11650"""
    adapter = TypeAdapter(Mapping[str, int])

    with pytest.raises(ValidationError):
        adapter.validate_python({'valid': 1, 'invalid': {}})
https://github.com/pydantic/pydantic/issues/11650
tests/test_types.py