diff --git a/src/monty/io.py b/src/monty/io.py index 81110534e..ccd24189e 100644 --- a/src/monty/io.py +++ b/src/monty/io.py @@ -19,7 +19,7 @@ from typing import TYPE_CHECKING, Literal, cast if TYPE_CHECKING: - from typing import IO, Any, Generator, Union + from typing import IO, Any, Iterator, Union class EncodingWarning(Warning): ... # Added in Python 3.10