most-client 1.0.27__py3-none-any.whl → 1.0.29__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.
- most/async_api.py +2 -2
- most/types.py +10 -10
- {most_client-1.0.27.dist-info → most_client-1.0.29.dist-info}/METADATA +1 -1
- most_client-1.0.29.dist-info/RECORD +11 -0
- most_client-1.0.27.dist-info/RECORD +0 -11
- {most_client-1.0.27.dist-info → most_client-1.0.29.dist-info}/WHEEL +0 -0
- {most_client-1.0.27.dist-info → most_client-1.0.29.dist-info}/top_level.txt +0 -0
- {most_client-1.0.27.dist-info → most_client-1.0.29.dist-info}/zip-safe +0 -0
most/async_api.py
CHANGED
@@ -140,8 +140,8 @@ class AsyncMostClient(object):
|
|
140
140
|
headers=headers,
|
141
141
|
**kwargs)
|
142
142
|
|
143
|
-
if resp.
|
144
|
-
raise RuntimeError(resp.json()['message'])
|
143
|
+
if resp.status_code >= 400:
|
144
|
+
raise RuntimeError(resp.json()['message'] if resp.headers.get("Content-Type") == "application/json" else "Something went wrong.")
|
145
145
|
resp.raise_for_status()
|
146
146
|
return resp
|
147
147
|
|
most/types.py
CHANGED
@@ -30,8 +30,8 @@ class Text(DataClassJsonMixin):
|
|
30
30
|
@dataclass
|
31
31
|
class SubcolumnResult(DataClassJsonMixin):
|
32
32
|
name: str
|
33
|
-
score: Optional[int]
|
34
|
-
description: str
|
33
|
+
score: Optional[int] = None
|
34
|
+
description: str = ""
|
35
35
|
|
36
36
|
|
37
37
|
@dataclass_json
|
@@ -73,11 +73,11 @@ class JobStatus(DataClassJsonMixin):
|
|
73
73
|
@dataclass
|
74
74
|
class Result(DataClassJsonMixin):
|
75
75
|
id: str
|
76
|
-
text: Optional[str]
|
77
|
-
url: Optional[str]
|
78
|
-
results: Optional[List[ColumnResult]]
|
79
|
-
created_at: Optional[datetime]
|
80
|
-
applied_at: Optional[datetime]
|
76
|
+
text: Optional[str] = None
|
77
|
+
url: Optional[str] = None
|
78
|
+
results: Optional[List[ColumnResult]] = None
|
79
|
+
created_at: Optional[datetime] = None
|
80
|
+
applied_at: Optional[datetime] = None
|
81
81
|
|
82
82
|
def get_script(self) -> Optional[Script]:
|
83
83
|
if self.results is None:
|
@@ -120,9 +120,9 @@ class Dialog(DataClassJsonMixin):
|
|
120
120
|
@dataclass
|
121
121
|
class DialogResult(DataClassJsonMixin):
|
122
122
|
id: str
|
123
|
-
dialog: Optional[Dialog]
|
124
|
-
url: Optional[str]
|
125
|
-
results: Optional[List[ColumnResult]]
|
123
|
+
dialog: Optional[Dialog] = None
|
124
|
+
url: Optional[str] = None
|
125
|
+
results: Optional[List[ColumnResult]] = None
|
126
126
|
|
127
127
|
|
128
128
|
@dataclass_json
|
@@ -0,0 +1,11 @@
|
|
1
|
+
most/__init__.py,sha256=62uFFeM_1VVR83K3bTYWK3PEoqnmFCy9aWYerQ6U4Ds,67
|
2
|
+
most/_constrants.py,sha256=SlHKcBoXwe_sPzk8tdbb7lqhQz-Bfo__FhSoeFWodZE,217
|
3
|
+
most/api.py,sha256=_xqIj24dm1bINPy54zZ4Xqp5V8DQa05TN3zocuZW7io,17895
|
4
|
+
most/async_api.py,sha256=7uymQ643SVzFU-j_iR-8MqT5wkNad9v54nR9vT87QoY,18968
|
5
|
+
most/score_calculation.py,sha256=1XU1LfIH5LSCwAbAaKkr-EjH5qOTXrJKOUvhCCawka4,1054
|
6
|
+
most/types.py,sha256=ukhG70TPfSR9Xp11mQpXsaSBvKcbFW64PbXiUWtgG5E,3771
|
7
|
+
most_client-1.0.29.dist-info/METADATA,sha256=L0mKy0CMsOx9oALziU-mi66uXOyJzU4XCf3Q-7ljYVM,1027
|
8
|
+
most_client-1.0.29.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
9
|
+
most_client-1.0.29.dist-info/top_level.txt,sha256=2g5fk02LKkM1hV3pVVti_LQ60TToLBcR2zQ3JEKGVk8,5
|
10
|
+
most_client-1.0.29.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
11
|
+
most_client-1.0.29.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
most/__init__.py,sha256=62uFFeM_1VVR83K3bTYWK3PEoqnmFCy9aWYerQ6U4Ds,67
|
2
|
-
most/_constrants.py,sha256=SlHKcBoXwe_sPzk8tdbb7lqhQz-Bfo__FhSoeFWodZE,217
|
3
|
-
most/api.py,sha256=_xqIj24dm1bINPy54zZ4Xqp5V8DQa05TN3zocuZW7io,17895
|
4
|
-
most/async_api.py,sha256=bt3natlTmqbafo1hJ5TUkxMssz4l8o6_sLNRbTAoU4A,18912
|
5
|
-
most/score_calculation.py,sha256=1XU1LfIH5LSCwAbAaKkr-EjH5qOTXrJKOUvhCCawka4,1054
|
6
|
-
most/types.py,sha256=3Sh_WsROcGtoqUx92Uu3N720n8c3tzQNiaV-09B0m5s,3703
|
7
|
-
most_client-1.0.27.dist-info/METADATA,sha256=gS7PU_frb6eDrhagidCUmQhHPaGiB--s2Ag8GV7bmBU,1027
|
8
|
-
most_client-1.0.27.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
9
|
-
most_client-1.0.27.dist-info/top_level.txt,sha256=2g5fk02LKkM1hV3pVVti_LQ60TToLBcR2zQ3JEKGVk8,5
|
10
|
-
most_client-1.0.27.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
11
|
-
most_client-1.0.27.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|