(schema, model_class)
| 2781 | @pytest.mark.skip_json_schema_validation(reason='Custom type used.') |
| 2782 | def test_typeddict_with__callable_json_schema_extra(): |
| 2783 | def json_schema_extra(schema, model_class): |
| 2784 | schema.pop('properties') |
| 2785 | schema['type'] = 'override' |
| 2786 | assert model_class is Model |
| 2787 | |
| 2788 | class Model(TypedDict): |
| 2789 | __pydantic_config__ = ConfigDict(title='Test', json_schema_extra=json_schema_extra) # type: ignore |
no outgoing calls
no test coverage detected