Skip to content

Commit

Permalink
Fix some commas and words
Browse files Browse the repository at this point in the history
Found some bad apples and threw them away.
  • Loading branch information
Boštjan Mejak authored and niklasf committed Oct 23, 2020
1 parent 8b7ed23 commit 1164b78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chess/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,8 @@ def __repr__(self) -> str:

# Unfortunately in python-chess v1.1.0, info["wdl"] was a simple tuple
# of the relative permille values, so we have to support __iter__,
# __len__, __getitem__ and equality comparisons with other tuples.
# Nevermind ordering, because thats not a sensible operation anyway.
# __len__, __getitem__, and equality comparisons with other tuples.
# Never mind the ordering, because that's not a sensible operation, anyway.

def __iter__(self) -> Iterator[int]:
yield self.relative.wins
Expand Down Expand Up @@ -815,7 +815,7 @@ class Wdl:

def total(self) -> int:
"""
Returns the total number of games. Usually ``wdl`` reported by engines
Returns the total number of games. Usually, ``wdl`` reported by engines
is scaled to 1000 games.
"""
return self.wins + self.draws + self.losses
Expand Down

0 comments on commit 1164b78

Please sign in to comment.