Commit 494b836
committed
Fix as_dict for arrays
If the field is an array, then the field type will not have the as_dict
method bound to it. The Structure describing the individual elements in
the array will have the as_dict method. Because of this, hasattr(type_,
"as_dict") will always return False.1 parent 0df7325 commit 494b836
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 20 | + | |
| 21 | + | |
24 | 22 | | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments