Skip to content

Commit

Permalink
[duplicate-code] Add typing for '_display_sims'
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Jul 1, 2021
1 parent 30adba7 commit 65b5728
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pylint/checkers/similar.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from getopt import getopt
from io import TextIOWrapper
from itertools import chain, groupby
from typing import List
from typing import List, Tuple

import astroid

Expand Down Expand Up @@ -86,7 +86,7 @@ def append_stream(
except UnicodeDecodeError:
pass

def run(self):
def run(self) -> None:
"""start looking for similarities and display results on stdout"""
self._display_sims(self._compute_sims())

Expand All @@ -110,7 +110,7 @@ def _compute_sims(self):
sims.reverse()
return sims

def _display_sims(self, similarities):
def _display_sims(self, similarities: List[Tuple]) -> None:
"""Display computed similarities on stdout"""
duplicated_line_number = 0
for number, files in similarities:
Expand Down

0 comments on commit 65b5728

Please sign in to comment.