xcpcio 0.65.1__py3-none-any.whl → 0.65.2__py3-none-any.whl
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.
Potentially problematic release.
This version of xcpcio might be problematic. Click here for more details.
- xcpcio/__version__.py +1 -1
- xcpcio/types.py +9 -6
- {xcpcio-0.65.1.dist-info → xcpcio-0.65.2.dist-info}/METADATA +1 -1
- {xcpcio-0.65.1.dist-info → xcpcio-0.65.2.dist-info}/RECORD +6 -6
- {xcpcio-0.65.1.dist-info → xcpcio-0.65.2.dist-info}/WHEEL +0 -0
- {xcpcio-0.65.1.dist-info → xcpcio-0.65.2.dist-info}/entry_points.txt +0 -0
xcpcio/__version__.py
CHANGED
xcpcio/types.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Dict, List, Literal, Optional, Union
|
|
1
|
+
from typing import Any, Dict, List, Literal, Optional, Union
|
|
2
2
|
|
|
3
3
|
from pydantic import BaseModel, Field, RootModel
|
|
4
4
|
|
|
@@ -88,6 +88,7 @@ class BalloonColor(BaseModel):
|
|
|
88
88
|
|
|
89
89
|
class Person(BaseModel):
|
|
90
90
|
name: Text
|
|
91
|
+
|
|
91
92
|
cf_id: Optional[str] = None
|
|
92
93
|
icpc_id: Optional[str] = None
|
|
93
94
|
|
|
@@ -98,9 +99,12 @@ Persons = List[Person]
|
|
|
98
99
|
class Problem(BaseModel):
|
|
99
100
|
id: str
|
|
100
101
|
label: str
|
|
102
|
+
|
|
101
103
|
name: Optional[Text] = None
|
|
104
|
+
|
|
102
105
|
time_limit: Optional[str] = None
|
|
103
106
|
memory_limit: Optional[str] = None
|
|
107
|
+
|
|
104
108
|
balloon_color: Optional[BalloonColor] = None
|
|
105
109
|
|
|
106
110
|
|
|
@@ -112,8 +116,7 @@ class SubmissionReaction(BaseModel):
|
|
|
112
116
|
|
|
113
117
|
|
|
114
118
|
class Submission(BaseModel):
|
|
115
|
-
id:
|
|
116
|
-
submission_id: Optional[str] = None
|
|
119
|
+
id: str = None
|
|
117
120
|
|
|
118
121
|
team_id: str = ""
|
|
119
122
|
problem_id: Union[int, str] = 0
|
|
@@ -148,7 +151,7 @@ class Team(BaseModel):
|
|
|
148
151
|
location: Optional[str] = None
|
|
149
152
|
icpc_id: Optional[str] = None
|
|
150
153
|
|
|
151
|
-
extra: Dict[str,
|
|
154
|
+
extra: Dict[str, Any] = Field(default_factory=dict, exclude=True)
|
|
152
155
|
|
|
153
156
|
def add_group(self, group: str):
|
|
154
157
|
if group not in self.group:
|
|
@@ -202,9 +205,9 @@ class Contest(BaseModel):
|
|
|
202
205
|
|
|
203
206
|
version: Optional[str] = None
|
|
204
207
|
|
|
205
|
-
options: ContestOptions =
|
|
208
|
+
options: Optional[ContestOptions] = None
|
|
206
209
|
|
|
207
|
-
unfrozen_time: int = 0x3F3F3F3F3F3F3F3F
|
|
210
|
+
unfrozen_time: int = Field(default=0x3F3F3F3F3F3F3F3F, exclude=True)
|
|
208
211
|
|
|
209
212
|
def append_balloon_color(self, color: BalloonColor):
|
|
210
213
|
if self.balloon_color is None:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
xcpcio/__init__.py,sha256=NB6wpVr5JUrOx2vLIQSVtYuCz0d7kNFE39TSQlvoENk,125
|
|
2
|
-
xcpcio/__version__.py,sha256=
|
|
2
|
+
xcpcio/__version__.py,sha256=ey9T-9pBnp9aZNE4xhvZ-hAcytzr8f8UXwMU7DrQ7uM,172
|
|
3
3
|
xcpcio/constants.py,sha256=MjpAgNXiBlUsx1S09m7JNT-nekNDR-aE6ggvGL3fg0I,2297
|
|
4
|
-
xcpcio/types.py,sha256=
|
|
4
|
+
xcpcio/types.py,sha256=mvkI8ulxYAqPOED-fy8JaHEd2jFwkgpiAMA9oAD5i7Y,7362
|
|
5
5
|
xcpcio/api/__init__.py,sha256=B9gLdAlR3FD7070cvAC5wAwMy3iV63I8hh4mUrnrKpk,274
|
|
6
6
|
xcpcio/api/client.py,sha256=BuzH8DbJYudJ-Kne-2XziLW__B_7iEqElJ4n2SGZCoY,2374
|
|
7
7
|
xcpcio/api/models.py,sha256=_dChApnIHVNN3hEL7mR5zonq8IUcxW_h7z1kUz6reSs,772
|
|
@@ -40,7 +40,7 @@ xcpcio/clics/model/model_2023_06/model.py,sha256=bVMDWpJTwPSpz1fHPxWrWerxCBIboH3
|
|
|
40
40
|
xcpcio/clics/reader/__init__.py,sha256=Nfi78X8J1tJPh7WeSRPLMRUprlS2JYelYJHW4DfyJ7U,162
|
|
41
41
|
xcpcio/clics/reader/contest_package_reader.py,sha256=0wIzQp4zzdaB10zMY4WALLIeoXcMuhMJ6nRrfKxWhgw,14179
|
|
42
42
|
xcpcio/clics/reader/interface.py,sha256=lK2JXU1n8GJ4PecXnfFBijMaCVLYk404e4QwV_Ti2Hk,3918
|
|
43
|
-
xcpcio-0.65.
|
|
44
|
-
xcpcio-0.65.
|
|
45
|
-
xcpcio-0.65.
|
|
46
|
-
xcpcio-0.65.
|
|
43
|
+
xcpcio-0.65.2.dist-info/METADATA,sha256=FuiYX95vr76YMn8V9iImd0pk-lTB1t3RnyOXr_f9EG8,2233
|
|
44
|
+
xcpcio-0.65.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
45
|
+
xcpcio-0.65.2.dist-info/entry_points.txt,sha256=JYkvmmxKFWv0EBU6Ys65XsjkOO02KGlzASau0GX9TQ8,110
|
|
46
|
+
xcpcio-0.65.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|