mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-08 08:45:43 +08:00
type-checking
This commit is contained in:
parent
f6802dfed0
commit
337045c9f8
@ -192,6 +192,8 @@ class Session:
|
|||||||
self.max_players = max_players
|
self.max_players = max_players
|
||||||
|
|
||||||
if self._use_teams:
|
if self._use_teams:
|
||||||
|
assert team_names is not None
|
||||||
|
assert team_colors is not None
|
||||||
for i, color in enumerate(team_colors):
|
for i, color in enumerate(team_colors):
|
||||||
team = Team(team_id=self._next_team_id,
|
team = Team(team_id=self._next_team_id,
|
||||||
name=GameActivity.get_team_display_string(
|
name=GameActivity.get_team_display_string(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user