File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1965,12 +1965,12 @@ class BufferSeries:
1965
1965
e.g. o[-1] is an element immediately preceding o[0].
1966
1966
"""
1967
1967
1968
- def __init__ (self ):
1968
+ def __init__ (self ) -> None :
1969
1969
self ._start = 0
1970
- self ._array = []
1970
+ self ._array : list [ _TextAccumulator ] = []
1971
1971
self ._constructor = _text_accumulator
1972
1972
1973
- def __getitem__ (self , i ) :
1973
+ def __getitem__ (self , i : int ) -> _TextAccumulator :
1974
1974
i -= self ._start
1975
1975
if i < 0 :
1976
1976
self ._start += i
@@ -1981,11 +1981,11 @@ def __getitem__(self, i):
1981
1981
self ._array .append (self ._constructor ())
1982
1982
return self ._array [i ]
1983
1983
1984
- def clear (self ):
1984
+ def clear (self ) -> None :
1985
1985
for ta in self ._array :
1986
1986
ta .text .clear ()
1987
1987
1988
- def dump (self ):
1988
+ def dump (self ) -> str :
1989
1989
texts = [ta .output () for ta in self ._array ]
1990
1990
return "" .join (texts )
1991
1991
You can’t perform that action at this time.
0 commit comments