File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ def _to_full_path(item: EntryTupOrNone, path_prefix: str) -> EntryTupOrNone:
144
144
145
145
146
146
def traverse_trees_recursive (odb : 'GitCmdObjectDB' , tree_shas : Sequence [Union [bytes , None ]],
147
- path_prefix : str ) -> List [tuple [EntryTupOrNone , ...]]:
147
+ path_prefix : str ) -> List [Tuple [EntryTupOrNone , ...]]:
148
148
"""
149
149
:return: list of list with entries according to the given binary tree-shas.
150
150
The result is encoded in a list
@@ -165,7 +165,8 @@ def traverse_trees_recursive(odb: 'GitCmdObjectDB', tree_shas: Sequence[Union[by
165
165
if tree_sha is None :
166
166
data : List [EntryTupOrNone ] = []
167
167
else :
168
- data = list (tree_entries_from_data (odb .stream (tree_sha ).read ())) # make new list for typing as invariant
168
+ # make new list for typing as list invariant
169
+ data = [x for x in tree_entries_from_data (odb .stream (tree_sha ).read ())]
169
170
# END handle muted trees
170
171
trees_data .append (data )
171
172
# END for each sha to get data for
You can’t perform that action at this time.
0 commit comments