Skip to content

Commit

Permalink
Update cvat/apps/engine/media_extractors.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiltsov-max authored Feb 7, 2025
1 parent 70bf8a8 commit cb19edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat/apps/engine/media_extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def _get_object_size(self, obj: _MediaT) -> int:

return obj.get_size()

def _can_put_item_in_cache(self, value_size):
def _can_put_item_in_cache(self, value_size: int) -> bool:
return (
len(self._cache) + 1 <= self.max_cache_entries and
self.used_cache_memory + value_size <= self.max_cache_memory
Expand Down

0 comments on commit cb19edd

Please sign in to comment.