Skip to content

Commit

Permalink
Explicit type annotations for reamining class vars
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Oct 22, 2020
1 parent 049f667 commit 6c20669
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions chess/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1395,10 +1395,10 @@ class Board(BaseBoard):
Use :func:`~chess.Board.is_valid()` to detect invalid positions.
"""

aliases = ["Standard", "Chess", "Classical", "Normal", "Illegal", "From Position"]
aliases: ClassVar[List[str]] = ["Standard", "Chess", "Classical", "Normal", "Illegal", "From Position"]
uci_variant: ClassVar[Optional[str]] = "chess"
xboard_variant: ClassVar[Optional[str]] = "normal"
starting_fen = STARTING_FEN
starting_fen: ClassVar[str] = STARTING_FEN

tbw_suffix: ClassVar[Optional[str]] = ".rtbw"
tbz_suffix: ClassVar[Optional[str]] = ".rtbz"
Expand Down Expand Up @@ -1511,7 +1511,6 @@ def legal_moves(self) -> LegalMoveGenerator:
"""
return LegalMoveGenerator(self)


@property
def pseudo_legal_moves(self) -> PseudoLegalMoveGenerator:
"""
Expand Down

0 comments on commit 6c20669

Please sign in to comment.