mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 15:16:33 -08:00
Python: Fix linting issues
The following Flake8 issues were fixed: * W291 * W504 * F821 * F401 * F541 * E402 * E711
This commit is contained in:
@@ -133,7 +133,7 @@ def update_game(data, action):
|
||||
# the new part depends on and doesn't have enough of the part already
|
||||
overMaxParts = part_type.count < part_count + 1
|
||||
missingPartDep = (
|
||||
part_type.depends != None and parts[part_type.depends] == 0
|
||||
part_type.depends is not None and parts[part_type.depends] == 0
|
||||
)
|
||||
|
||||
if not overMaxParts and not missingPartDep:
|
||||
|
||||
Reference in New Issue
Block a user