4242from getopt import GetoptError , getopt
4343from io import BufferedIOBase , BufferedReader , BytesIO
4444from itertools import chain
45- from typing import (
46- TYPE_CHECKING ,
47- Dict ,
48- List ,
49- NamedTuple ,
50- NewType ,
51- NoReturn ,
52- TextIO ,
53- Tuple ,
54- Union ,
55- )
45+ from typing import TYPE_CHECKING , NamedTuple , NewType , NoReturn , TextIO , Union
5646
5747import astroid
5848from astroid import nodes
@@ -84,10 +74,10 @@ class LineSpecifs(NamedTuple):
8474
8575# Links LinesChunk object to the starting indices (in lineset's stripped lines)
8676# of the different chunk of lines that are used to compute the hash
87- HashToIndex_T = Dict ["LinesChunk" , List [Index ]]
77+ HashToIndex_T = dict ["LinesChunk" , list [Index ]]
8878
8979# Links index in the lineset's stripped lines to the real lines in the file
90- IndexToLines_T = Dict [Index , "SuccessiveLinesLimits" ]
80+ IndexToLines_T = dict [Index , "SuccessiveLinesLimits" ]
9181
9282# The types the streams read by pylint can take. Originating from astroid.nodes.Module.stream() and open()
9383STREAM_TYPES = Union [TextIO , BufferedReader , BytesIO ]
@@ -113,7 +103,7 @@ def __init__(
113103
114104# Links the indices to the starting line in both lineset's stripped lines to
115105# the start and end lines in both files
116- CplIndexToCplLines_T = Dict ["LineSetStartCouple" , CplSuccessiveLinesLimits ]
106+ CplIndexToCplLines_T = dict ["LineSetStartCouple" , CplSuccessiveLinesLimits ]
117107
118108
119109class LinesChunk :
@@ -212,7 +202,7 @@ def increment(self, value: Index) -> LineSetStartCouple:
212202 )
213203
214204
215- LinesChunkLimits_T = Tuple ["LineSet" , LineNumber , LineNumber ]
205+ LinesChunkLimits_T = tuple ["LineSet" , LineNumber , LineNumber ]
216206
217207
218208def hash_lineset (
0 commit comments