-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathutils.pyi
47 lines (27 loc) · 1016 Bytes
/
utils.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from typing import List
from dodona.translator import Translator
class FeedbackException(Exception):
msg: str
line: int
pos: int
trans: Translator
def __init__(self, trans: Translator, msg: str, line: int, pos: int, *args): ...
def __str__(self) -> str: ...
def message_str(self) -> str:
"""Create the message that should be displayed in the Dodona Tab"""
...
def annotation_str(self) -> str:
"""Create the message that should be displayed in the annotation in the Code Tab"""
...
class EvaluationAborted(RuntimeError):
def __init__(self, *args): ...
class InvalidTranslation(ValueError):
def __init__(self, *args): ...
class DelayedExceptions(FeedbackException):
exceptions: List[FeedbackException]
def __init__(self): ...
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
def add(self, exception: FeedbackException): ...
def clear(self): ...
def _print_exceptions(self) -> str: ...