14
14
15
15
@dataclass (frozen = True )
16
16
class TestCase :
17
- """Dataclass for test case ."""
17
+ """Test case data model ."""
18
18
19
19
input : Optional [str ] = None
20
20
expected_output : Optional [str ] = None
@@ -62,6 +62,11 @@ def encode(self) -> bytes:
62
62
63
63
64
64
class Language (BaseModel ):
65
+ """Language data model.
66
+
67
+ Stores information about a language supported by Judge0.
68
+ """
69
+
65
70
id : int
66
71
name : str
67
72
is_archived : Optional [bool ] = None
@@ -71,7 +76,12 @@ class Language(BaseModel):
71
76
72
77
73
78
class LanguageAlias (IntEnum ):
74
- """Language enumeration."""
79
+ """Language alias enumeration.
80
+
81
+ Enumerates the programming languages supported by Judge0 client. Language
82
+ alias is resolved to the latest version of the language supported by the
83
+ selected client.
84
+ """
75
85
76
86
ASSEMBLY = auto ()
77
87
BASH = auto ()
@@ -143,14 +153,20 @@ class LanguageAlias(IntEnum):
143
153
144
154
145
155
class Flavor (IntEnum ):
146
- """Judge0 flavor enumeration."""
156
+ """Flavor enumeration.
157
+
158
+ Enumerates the flavors supported by Judge0 client.
159
+ """
147
160
148
161
CE = 0
149
162
EXTRA_CE = 1
150
163
151
164
152
165
class Status (IntEnum ):
153
- """Status enumeration."""
166
+ """Status enumeration.
167
+
168
+ Enumerates possible status codes of a submission.
169
+ """
154
170
155
171
IN_QUEUE = 1
156
172
PROCESSING = 2
@@ -172,7 +188,10 @@ def __str__(self):
172
188
173
189
174
190
class Config (BaseModel ):
175
- """Client config data."""
191
+ """Client config data model.
192
+
193
+ Stores configuration data for the Judge0 client.
194
+ """
176
195
177
196
allow_enable_network : bool
178
197
allow_enable_per_process_and_thread_memory_limit : bool
0 commit comments