code-battles 1.7.10 → 1.7.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import sys
2
4
 
3
5
  from code_battles.battles import CodeBattles
@@ -1,3 +1,7 @@
1
+ """Code Battles base class implementation."""
2
+
3
+ from __future__ import annotations
4
+
1
5
  import asyncio
2
6
  import base64
3
7
  import datetime
@@ -919,8 +923,8 @@ class CodeBattles(
919
923
  "player_api": None,
920
924
  "context": context,
921
925
  **self.get_api().__dict__,
926
+ **self.configure_bot_globals(player_index),
922
927
  }
923
- | self.configure_bot_globals(player_index)
924
928
  for player_index, context in enumerate(contexts)
925
929
  ]
926
930
  for index, api_code in enumerate(player_codes):
@@ -1,5 +1,7 @@
1
1
  """Generic useful utilities for creating games with PyScript."""
2
2
 
3
+ from __future__ import annotations
4
+
3
5
  import asyncio
4
6
  import math
5
7
  import sys
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-battles",
3
- "version": "1.7.10",
3
+ "version": "1.7.11",
4
4
  "description": "A library for building interactive competitive coding battles",
5
5
  "repository": "https://github.com/noamzaks/code-battles",
6
6
  "homepage": "https://code-battles.readthedocs.org",