monty icon indicating copy to clipboard operation
monty copied to clipboard

[Bug]: `DeprecationWarning` due to use of `general_plain_validator_function` in `MSONable.__get_pydantic_core_schema__` with Pydantic v2

Open ugognw opened this issue 1 year ago • 3 comments

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

ugognw avatar Nov 24 '23 22:11 ugognw

@shyuep Did you mean to assign @munrojm?

janosh avatar Nov 24 '23 23:11 janosh

Thanks! Fixed in #631.

DanielYang59 avatar Mar 27 '24 14:03 DanielYang59

@shyuep I believe we can close this issue now. Thanks!

DanielYang59 avatar Jul 23 '24 11:07 DanielYang59