Using python 3.8 I tried the size parameter of the io.TextIOBase.readline method (file.readline(10)).
size
io.TextIOBase.readline
file.readline(10)
According to the docs: