Consistency of get_inverse calls

This commit is contained in:
Thomas Krijnen
2026-01-14 14:00:50 +01:00
parent 0a5dd78774
commit 1a4d750ecd
3 changed files with 12 additions and 27 deletions
+2 -2
View File
@@ -806,11 +806,11 @@ class file_mixin:
if with_attribute_indices and not allow_duplicate:
raise ValueError("with_attribute_indices requires allow_duplicate to be True")
inverses = self.get_inverse(inst)
inverses = self._get_inverse(inst)
if allow_duplicate:
if with_attribute_indices:
idxs = self.get_inverse_indices(inst)
idxs = self._get_inverse_indices(inst)
# TODO: include in typing.
return list(zip(inverses, idxs))
else: