You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just noticed https://peps.python.org/pep-0702/ by using model.json() of a pydantic model object. The json() method is deprecated in pydantic 2.0.0 and Visual Studio Code made it visually pretty clear.
We should also use that, to give developers the hint.
This is mostly a note to myself :-)
The text was updated successfully, but these errors were encountered:
I can only speak for PyCharm, but using the "old" way with warnings.warn("deprecated", DeprecationWarning) correctly marks the corresponding methods as well.
I've just noticed https://peps.python.org/pep-0702/ by using
model.json()
of a pydantic model object. The json() method is deprecated in pydantic 2.0.0 and Visual Studio Code made it visually pretty clear.We should also use that, to give developers the hint.
This is mostly a note to myself :-)
The text was updated successfully, but these errors were encountered: