mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-26 04:41:52 -08:00
Python: Add type annotations to all 'print' functions (#662)
* Add test to superstartrek and fixes several issues in superstartrek - I probably introduced them 🙈
* Mastermind type annotations
This commit is contained in:
@@ -16,7 +16,7 @@ from golf import (
|
||||
)
|
||||
|
||||
|
||||
def test_odds():
|
||||
def test_odds() -> None:
|
||||
n = 1000
|
||||
p = sum(odds(50) for i in range(n)) / n
|
||||
assert abs(p - 0.5) < 0.1
|
||||
|
||||
Reference in New Issue
Block a user