Skip to content

Commit

Permalink
Fix return type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
session-zz committed Oct 31, 2024
1 parent fa78a18 commit 3a9bb8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mgds/pipelineModules/DiskCache.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def fn(group_index, in_index, in_variation):
self.aggregate_cache[group_key][in_variation] = \
torch.load(os.path.realpath(os.path.join(cache_dir, 'aggregate.pt')), weights_only=False)

def __get_input_index(self, out_variation: int, out_index: int) -> (str, int, int):
def __get_input_index(self, out_variation: int, out_index: int) -> tuple[str, int, int, int]:
offset = 0
for group_key, group_output_samples in self.group_output_samples.items():
if out_index >= group_output_samples + offset:
Expand Down

0 comments on commit 3a9bb8a

Please sign in to comment.