Set json indent=2 for pydantic rows

This commit is contained in:
simon987 2023-02-25 16:07:41 -05:00
parent 42e33b72b2
commit e267bbf1c8
2 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@ class Table:
def setitem_pydantic(self, key, value: BaseModel):
self.__setitem__(key, {
"json": value.json(encoder=_json_encoder),
"json": value.json(encoder=_json_encoder, indent=2),
"__class": value.__class__.__name__,
"__module": value.__class__.__module__,
"__pydantic": 1

View File

@ -2,7 +2,7 @@ from setuptools import setup
setup(
name="hexlib",
version="1.84",
version="1.85",
description="Misc utility methods",
author="simon987",
author_email="me@simon987.net",