fix(converter): add explicit Message type check in convert_to_data function (#8722)
* update * update to template * Update Meeting Summary.json * [autofix.ci] apply automated fixes * Update Meeting Summary.json * Update Research Translation Loop.json * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Yuqi Tang <yuqi.tang@datastax.com>
This commit is contained in:
parent
d2d774d11c
commit
557120df8c
3 changed files with 479 additions and 779 deletions
|
|
@ -28,6 +28,8 @@ def convert_to_data(v: DataFrame | Data | Message | dict) -> Data:
|
||||||
"""
|
"""
|
||||||
if isinstance(v, dict):
|
if isinstance(v, dict):
|
||||||
return Data(v)
|
return Data(v)
|
||||||
|
if isinstance(v, Message):
|
||||||
|
return v.to_data()
|
||||||
return v if isinstance(v, Data) else v.to_data()
|
return v if isinstance(v, Data) else v.to_data()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue