Skip to content

Commit

Permalink
Literal requires Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Jan 18, 2020
1 parent 043c5a4 commit f44fc9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chess/pgn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f44fc9c

Please sign in to comment.