-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update handling for Pydantic objects in
mf_pformat
(#1666)
This PR updates the handling for Pydantic objects in `mf_pformat` to check if the `dict()` methods exists instead of the `isinstance(BaseModel)` check. The `BaseModel` is actually from the `dsi_shim` and in some cases with different Pydantic versions, it's possible that the check does not pass. Since it's not foolproof, the formatter falls back to `pprint` if there is an error.
- Loading branch information
Showing
1 changed file
with
23 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters