Linux: Adds missing abc.Iterable implementation

`hlist_head` is missing an implementation for
`collections.abc.Iterable`, resulting in a crash at runtime. This fixes
the issue by providing the required `__iter__` implementation for
`hlist_head`.
This commit is contained in:
David McDonald
2024-10-24 14:39:22 -05:00
parent 1500d2ecf6
commit 388a3e6458
@@ -1037,6 +1037,9 @@ class hlist_head(objects.StructType, collections.abc.Iterable):
current = current.next
def __iter__(self) -> Iterator[interfaces.objects.ObjectInterface]:
return self.to_list(self.vol.parent.vol.type_name, self.vol.member_name)
class files_struct(objects.StructType):
def get_fds(self) -> interfaces.objects.ObjectInterface: