Method: pylint.checkers.similar.LinesChunk.__init__
Calls: 3055, Exceptions: 0, Paths: 1Back
Path 1: 3055 calls (1.0)
'input.similar_lines_a' (1189) 'input.similar_lines_b' (464) 'input.hide_code_with_imports' (377) 'input.func_return_yield_mix_py_33' (145) 'input.fun...
0 (388) 1 (299) 2 (264) 3 (167) 4 (136) 5 (105) 6 (105) 7 (105) 8 (105) 9 (103)
tuple (3055)
1def __init__(self, fileid: str, num_line: int, *lines: Iterable[str]) -> None:
2 self._fileid: str = fileid
3 """The name of the file from which the LinesChunk object is generated."""
4
5 self._index: Index = Index(num_line)
6 """The index in the stripped lines that is the starting of consecutive
7 lines.
8 """
9
10 self._hash: int = sum(hash(lin) for lin in lines)
11 """The hash of some consecutive lines."""