We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unpack
1 parent 0f1405c commit cb7940dCopy full SHA for cb7940d
sentry_sdk/ai/utils.py
@@ -19,10 +19,10 @@ def _normalize_data(data, unpack=True):
19
return data
20
if isinstance(data, list):
21
if unpack and len(data) == 1:
22
- return _normalize_data(data[0]) # remove empty dimensions
23
- return list(_normalize_data(x) for x in data)
+ return _normalize_data(data[0], unpack=unpack) # remove empty dimensions
+ return list(_normalize_data(x, unpack=unpack) for x in data)
24
if isinstance(data, dict):
25
- return {k: _normalize_data(v) for (k, v) in data.items()}
+ return {k: _normalize_data(v, unpack) for (k, v) in data.items()}
26
27
28
0 commit comments