File: src/opengradient/client/_conversions.py lines 60, 112
The function initialises json_tensors = [] on line 60 but the return statement on line 112 only returns (number_tensors, string_tensors)
The json_tensors list is never populated no elif branch for JSON dtype and is never returned.
This is entirely dead code,
But it sets up a future trap: if someone adds JSON tensor support to the collection loop without fixing the return statement, JSON inputs will silently disappear.
Current return:
pythonreturn number_tensors, string_tensors
Remove the dead variable. If JSON tensor input is intended:
pythonreturn number_tensors, string_tensors, json_tensors
and update all callers accordingly.
File: src/opengradient/client/_conversions.py lines 60, 112
The function initialises json_tensors = [] on line 60 but the return statement on line 112 only returns (number_tensors, string_tensors)
The json_tensors list is never populated no elif branch for JSON dtype and is never returned.
This is entirely dead code,
But it sets up a future trap: if someone adds JSON tensor support to the collection loop without fixing the return statement, JSON inputs will silently disappear.
Current return:
pythonreturn number_tensors, string_tensors
Remove the dead variable. If JSON tensor input is intended:
pythonreturn number_tensors, string_tensors, json_tensors
and update all callers accordingly.