Added type annotations for _is_exists function in EasterEggHuntGame._update

This commit is contained in:
indev 2020-04-07 20:10:17 +03:00
parent 18133ac216
commit 1fe3c69551

View File

@ -186,7 +186,7 @@ class EasterEggHuntGame(ba.TeamGameActivity):
xpos = random.uniform(-7.1, 6.0)
ypos = random.uniform(3.5, 3.5)
zpos = random.uniform(-8.2, 3.7)
def _is_exists(egg):
def _is_exists(egg: Egg) -> bool:
if egg.node is None:
return False
return egg.node.exists()