Skip to content

Commit

Permalink
fix: Revert of dup cherry-pick #1949 (#2088)
Browse files Browse the repository at this point in the history
Signed-off-by: yangxuan <[email protected]>
  • Loading branch information
XuanYang-cn committed May 14, 2024
1 parent af202c5 commit 5b59272
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pymilvus/orm/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,12 @@ def enable_dynamic_field(self, value: bool):
self._enable_dynamic_field = bool(value)

def to_dict(self):
_dict = {
return {
"auto_id": self.auto_id,
"description": self._description,
"fields": [s.to_dict() for s in self._fields],
"enable_dynamic_field": self.enable_dynamic_field,
}
if self._enable_dynamic_field is not None:
_dict["enable_dynamic_field"] = self._enable_dynamic_field
return _dict

def verify(self):
# final check, detect obvious problems
Expand Down

0 comments on commit 5b59272

Please sign in to comment.