File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change 66
77from __future__ import annotations
88
9- import sys
10-
11- if sys .version_info [:2 ] > (3 , 9 ):
12- from collections import Counter
13- else :
14- from collections import Counter as _Counter
15-
16- class Counter (_Counter ):
17- def total (self ):
18- return len (tuple (self .elements ()))
19-
20-
9+ from collections import Counter
2110from pathlib import Path
22- from typing import Counter as CounterType
23- from typing import TextIO , Tuple
11+ from typing import TextIO
2412
2513import pytest
2614
@@ -31,7 +19,7 @@ def total(self):
3119from pylint .testutils .constants import _EXPECTED_RE
3220from pylint .testutils .reporter_for_tests import FunctionalTestReporter
3321
34- MessageCounter = CounterType [ Tuple [int , str ]]
22+ MessageCounter = Counter [ tuple [int , str ]]
3523
3624
3725def get_functional_test_files_from_directory (input_dir : Path ) -> list [tuple [str , Path ]]:
You can’t perform that action at this time.
0 commit comments