RL-book icon indicating copy to clipboard operation
RL-book copied to clipboard

Inconsistent code snippet imports

Open matteosantama opened this issue 3 years ago • 2 comments

pg. 119 has the following code snippet

from typing import Iterator
X = TypeVar('X')

def iterate(step: Callable[[X], X], start: X) -> Iterator[X]:
    ...

It seems odd to explicitly import Iterator from typing, but not Callable or TypeVar.

matteosantama avatar Jan 19 '21 23:01 matteosantama