Python: Type annotations

This commit is contained in:
Martin Thoma
2022-04-02 10:06:15 +02:00
parent c8f86531e9
commit ac184fec42
25 changed files with 241 additions and 245 deletions

View File

@@ -41,7 +41,7 @@ class NIM:
return pile, num
def _command_integrity(self, num, pile):
def _command_integrity(self, num, pile) -> bool:
return pile <= 4 and pile >= 1 and num <= self.piles[pile]
def print_pegs(self) -> None: