diff --git a/chess/pgn.py b/chess/pgn.py index 12d33ef95..a0b85b84f 100644 --- a/chess/pgn.py +++ b/chess/pgn.py @@ -25,7 +25,7 @@ import chess -from typing import Callable, Dict, Generic, Iterable, Iterator, List, Literal, Mapping, MutableMapping, Set, TextIO, Tuple, Type, TypeVar, Optional, Union +from typing import Callable, Dict, Generic, Iterable, Iterator, List, Mapping, MutableMapping, Set, TextIO, Tuple, Type, TypeVar, Optional, Union LOGGER = logging.getLogger(__name__) @@ -947,7 +947,7 @@ def result(self) -> chess.Board: return self.board -class SkipVisitor(BaseVisitor[Literal[True]]): +class SkipVisitor(BaseVisitor["typing.Literal[True]"]): """Skips a game.""" def begin_game(self) -> SkipType: