Skip to content

Commit 4601c5f

Browse files
authored
bugfix: get_collection has callers inheritance now (#319)
1 parent 37bd0ea commit 4601c5f

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
v. 1.5.2
2+
========
3+
Bugfix: `Database.get_collection` uses callers inheritance (same for async)
4+
5+
16
v. 1.5.1
27
========
38
Switching to endpoint as the only/primary way of specifying databases:

astrapy/database.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ def get_collection(
731731
embedding_api_key=coerce_embedding_headers_provider(embedding_api_key),
732732
max_time_ms=collection_max_time_ms,
733733
),
734+
callers=self.callers,
734735
)
735736

736737
def create_collection(
@@ -1810,6 +1811,7 @@ async def get_collection(
18101811
embedding_api_key=coerce_embedding_headers_provider(embedding_api_key),
18111812
max_time_ms=collection_max_time_ms,
18121813
),
1814+
callers=self.callers,
18131815
)
18141816

18151817
async def create_collection(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires-python = ">=3.8"
33

44
[tool.poetry]
55
name = "astrapy"
6-
version = "1.5.1"
6+
version = "1.5.2"
77
description = "AstraPy is a Pythonic SDK for DataStax Astra and its Data API"
88
authors = [
99
"Stefano Lottini <[email protected]>",

0 commit comments

Comments
 (0)