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 CHANGED
@@ -1,4 +1,4 @@
1
1
  # This file is auto-generated by Hatchling. As such, do not:
2
2
  # - modify
3
3
  # - track in version control e.g. be sure to add to .gitignore
4
- __version__ = VERSION = '0.65.1'
4
+ __version__ = VERSION = '0.65.2'
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: Optional[str] = None
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, str] = Field(default_factory=dict)
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 = Field(default_factory=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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xcpcio
3
- Version: 0.65.1
3
+ Version: 0.65.2
4
4
  Summary: xcpcio python lib
5
5
  Project-URL: homepage, https://github.com/xcpcio/xcpcio
6
6
  Project-URL: documentation, https://github.com/xcpcio/xcpcio
@@ -1,7 +1,7 @@
1
1
  xcpcio/__init__.py,sha256=NB6wpVr5JUrOx2vLIQSVtYuCz0d7kNFE39TSQlvoENk,125
2
- xcpcio/__version__.py,sha256=VBPsXdwddysU3SJE-BBz0H6duBTyQFGRD6HQcyRwc84,172
2
+ xcpcio/__version__.py,sha256=ey9T-9pBnp9aZNE4xhvZ-hAcytzr8f8UXwMU7DrQ7uM,172
3
3
  xcpcio/constants.py,sha256=MjpAgNXiBlUsx1S09m7JNT-nekNDR-aE6ggvGL3fg0I,2297
4
- xcpcio/types.py,sha256=jO5ka10DD6ENd_6eOx1ddSwmYhPjZOaYHmU2qDtuN5s,7383
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.1.dist-info/METADATA,sha256=5IYHoE0RFCb6_d226D76AKaWRwvn764SyYeL5TJfTs4,2233
44
- xcpcio-0.65.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
45
- xcpcio-0.65.1.dist-info/entry_points.txt,sha256=JYkvmmxKFWv0EBU6Ys65XsjkOO02KGlzASau0GX9TQ8,110
46
- xcpcio-0.65.1.dist-info/RECORD,,
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,,