Skip to content

Commit

Permalink
Merge pull request #422 from PrefectHQ/pydantic-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz authored Oct 14, 2024
2 parents ebd00d4 + 5ce70dd commit 9b33530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generate_block_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ def generate_block_metadata(block_subcls: Type[Block]) -> Dict[str, Any]:
Takes a block subclass and returns a JSON dict representation of
its corresponding block type and block schema.
"""
block_type_dict = block_subcls._to_block_type().dict(
block_type_dict = block_subcls._to_block_type().model_dump(
exclude={"id", "created", "updated", "is_protected"}, json_compatible=True
)
block_type_dict["block_schema"] = block_subcls._to_block_schema(
block_type_id=uuid4()
).dict(
).model_dump(
exclude={"id", "created", "updated", "block_type_id", "block_type"},
json_compatible=True,
)
Expand Down

0 comments on commit 9b33530

Please sign in to comment.