Skip to content

Commit

Permalink
fix!: return a JSON string instead of dict to be consistent with type…
Browse files Browse the repository at this point in the history
… annotation
  • Loading branch information
chebbyChefNEQ committed Aug 22, 2024
1 parent a7d2f6a commit 0231a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/python/lance/fragment.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __eq__(self, other: object) -> bool:

def to_json(self) -> str:
"""Serialize :class:`FragmentMetadata` to a JSON blob"""
return json.loads(self._metadata.json())
return self._metadata.json()

@staticmethod
def from_json(json_data: str) -> FragmentMetadata:
Expand Down

0 comments on commit 0231a5b

Please # to comment.