Skip to content

Commit f44fc9c

Browse files
committed
Literal requires Python 3.8
1 parent 043c5a4 commit f44fc9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chess/pgn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
import chess
2727

28-
from typing import Callable, Dict, Generic, Iterable, Iterator, List, Literal, Mapping, MutableMapping, Set, TextIO, Tuple, Type, TypeVar, Optional, Union
28+
from typing import Callable, Dict, Generic, Iterable, Iterator, List, Mapping, MutableMapping, Set, TextIO, Tuple, Type, TypeVar, Optional, Union
2929

3030

3131
LOGGER = logging.getLogger(__name__)
@@ -947,7 +947,7 @@ def result(self) -> chess.Board:
947947
return self.board
948948

949949

950-
class SkipVisitor(BaseVisitor[Literal[True]]):
950+
class SkipVisitor(BaseVisitor["typing.Literal[True]"]):
951951
"""Skips a game."""
952952

953953
def begin_game(self) -> SkipType:

0 commit comments

Comments
 (0)