monty
monty copied to clipboard
[Bug]: `DeprecationWarning` due to use of `general_plain_validator_function` in `MSONable.__get_pydantic_core_schema__` with Pydantic v2
https://github.com/materialsvirtuallab/monty/blob/5d37679e1f0cd58a8d165d76f3a095cb71266831/monty/json.py#L291-L300
Pydantic suggests a straight swap for core_schema.with_info_plain_validator_function