File tree 3 files changed +9
-7
lines changed
3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change
1
+ v 2.0.1
2
+ =======
3
+ bugfix: receiving `'$vector': null` caused response parsing to break
4
+
1
5
v 2.0.0
2
- ==========
6
+ =======
3
7
Collections admit `DataAPIMap` in writing and support `DataAPIDate` as well (the latter coming with the same timezone caveats as `datetime.date`)
4
8
(plus all of the v2 pre-releases below)
5
9
Original file line number Diff line number Diff line change @@ -163,10 +163,8 @@ def postprocess_collection_response_value(
163
163
else :
164
164
return DataAPIVector .from_bytes (_bytes ).data
165
165
else :
166
- raise ValueError (
167
- f"Response parsing failed at path '{ path } ': unexpected data type "
168
- f"found under $vector: { type (value )} "
169
- )
166
+ return value
167
+
170
168
if isinstance (value , dict ):
171
169
value_keys = set (value .keys ())
172
170
if value_keys == {"$date" }:
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
requires-python = " >=3.8"
3
- version = " 2.0.0 "
3
+ version = " 2.0.1 "
4
4
name = " astrapy"
5
5
description = " AstraPy is a Pythonic SDK for DataStax Astra and its Data API"
6
6
authors = [
@@ -25,7 +25,7 @@ classifiers = [
25
25
]
26
26
27
27
[tool .poetry ]
28
- version = " 2.0.0 "
28
+ version = " 2.0.1 "
29
29
name = " astrapy"
30
30
description = " AstraPy is a Pythonic SDK for DataStax Astra and its Data API"
31
31
authors = [
You can’t perform that action at this time.
0 commit comments