Skip to content

Commit

Permalink
Remove pylint workaround in library enumerate
Browse files Browse the repository at this point in the history
  • Loading branch information
karlch committed Jul 6, 2023
1 parent 0ceea49 commit 2b11b08
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions vimiv/gui/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,7 @@ def _add_rows(self, paths: List[str], are_directories: bool = False):
"""
get_size = files.get_size_directory if are_directories else files.get_size_file
mark_prefix = api.mark.indicator + " "
# See https://github.com/PyCQA/pylint/issues/7963
# TODO remove once newer pylint version with fix was released
enum_start = self.rowCount() + 1
for i, path in enumerate(paths, start=enum_start):
for i, path in enumerate(paths, start=self.rowCount() + 1):
name = os.path.basename(path)
if are_directories:
name = utils.add_html(name + "/", "b")
Expand Down

0 comments on commit 2b11b08

Please sign in to comment.