(self, stream: IO[str])
| 68 | |
| 69 | class Reader: |
| 70 | def __init__(self, stream: IO[str]) -> None: |
| 71 | self.string = stream.read() |
| 72 | self.position = Position.start() |
| 73 | self.mark = Position.start() |
| 74 | |
| 75 | def has_next(self) -> bool: |
| 76 | return self.position.chars < len(self.string) |