()
| 608 | |
| 609 | |
| 610 | def test_incompatible_metadata_error() -> None: |
| 611 | ta = TypeAdapter(Annotated[list[int], Field(pattern='abc')]) |
| 612 | with pytest.raises(TypeError, match="Unable to apply constraint 'pattern'"): |
| 613 | ta.validate_python([1, 2, 3]) |
| 614 | |
| 615 | |
| 616 | def test_compatible_metadata_raises_correct_validation_error() -> None: |
nothing calls this directly
no test coverage detected