Skip to content

Commit 6b0b7d5

Browse files
authored
do not return inplace-operated object
1 parent 7e009a2 commit 6b0b7d5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bindings/python/pymongoarrow/schema.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ def _get_field_projection_value(self, fname, ftype, projection):
8484
for nested_ftype in ftype:
8585
fname, ftype, projection = self._get_field_projection_value(fname + "." + nested_ftype.name, nested_ftype.type)
8686
return fname, ftype, projection
87-
return fname, ftype, projection.update({fname: True})
88-
87+
projection[fname] = value
88+
return fname, ftype, projection
89+
8990
def __eq__(self, other):
9091
if isinstance(other, type(self)):
9192
return self.typemap == other.typemap

0 commit comments

Comments
 (0)