Skip to content

Commit e4c4ede

Browse files
authored
Merge pull request #133 from DataMini/release-please--branches--main--changes--next
release: 4.5.0
2 parents a689b04 + 848606d commit e4c4ede

File tree

10 files changed

+38
-11
lines changed

10 files changed

+38
-11
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "4.4.0"
2+
".": "4.5.0"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 91
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-f081d80ec1b3a4951cccc2a085d46405da9aea9da7295cc264e834ada84127eb.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-69140680dde56332aa42ebbfbe12c0c3db2adf3904e4a821cee6465e491f4c57.yml

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Changelog
22

3+
## 4.5.0 (2025-01-19)
4+
5+
Full Changelog: [v4.4.0...v4.5.0](https://github.com/DataMini/asktable-python/compare/v4.4.0...v4.5.0)
6+
7+
### Features
8+
9+
* **api:** api update ([#134](https://github.com/DataMini/asktable-python/issues/134)) ([6d30087](https://github.com/DataMini/asktable-python/commit/6d30087ca2351d75443935907e7749fdfc96d1cf))
10+
* **api:** update organization info ([#135](https://github.com/DataMini/asktable-python/issues/135)) ([bad8bba](https://github.com/DataMini/asktable-python/commit/bad8bba976aa94114c4b6a801b31189913aa7699))
11+
12+
13+
### Bug Fixes
14+
15+
* type hint in custom code ([643d5c2](https://github.com/DataMini/asktable-python/commit/643d5c274950f7a6af11e5c1a8127ce70db82ada))
16+
17+
18+
### Chores
19+
20+
* **internal:** codegen related update ([#132](https://github.com/DataMini/asktable-python/issues/132)) ([f167bd7](https://github.com/DataMini/asktable-python/commit/f167bd73704e7e7c372ecc3aa73a64efbaa0d13b))
21+
322
## 4.4.0 (2025-01-15)
423

524
Full Changelog: [v4.3.0...v4.4.0](https://github.com/DataMini/asktable-python/compare/v4.3.0...v4.4.0)

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ cache_fine_grained = True
4141
# ```
4242
# Changing this codegen to make mypy happy would increase complexity
4343
# and would not be worth it.
44-
disable_error_code = func-returns-value
44+
disable_error_code = func-returns-value,overload-cannot-match
4545

4646
# https://github.com/python/mypy/issues/12162
4747
[mypy.overrides]

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "asktable"
3-
version = "4.4.0"
4-
description = "The official Python library for the asktable API"
3+
version = "4.5.0"
4+
description = "The official Python library for the Asktable API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"
77
authors = [

requirements-dev.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ markdown-it-py==3.0.0
4848
# via rich
4949
mdurl==0.1.2
5050
# via markdown-it-py
51-
mypy==1.13.0
51+
mypy==1.14.1
5252
mypy-extensions==1.0.0
5353
# via mypy
5454
nest-asyncio==1.6.0
@@ -68,7 +68,7 @@ pydantic-core==2.27.1
6868
# via pydantic
6969
pygments==2.18.0
7070
# via rich
71-
pyright==1.1.390
71+
pyright==1.1.392.post0
7272
pytest==8.3.3
7373
# via pytest-asyncio
7474
pytest-asyncio==0.24.0

src/asktable/_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __init__(
112112
# part of our public interface in the future.
113113
_strict_response_validation: bool = False,
114114
) -> None:
115-
"""Construct a new synchronous asktable client instance.
115+
"""Construct a new synchronous Asktable client instance.
116116
117117
This automatically infers the `api_key` argument from the `ASKTABLE_API_KEY` environment variable if it is not provided.
118118
"""
@@ -314,7 +314,7 @@ def __init__(
314314
# part of our public interface in the future.
315315
_strict_response_validation: bool = False,
316316
) -> None:
317-
"""Construct a new async asktable client instance.
317+
"""Construct a new async Asktable client instance.
318318
319319
This automatically infers the `api_key` argument from the `ASKTABLE_API_KEY` environment variable if it is not provided.
320320
"""

src/asktable/_response.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,13 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
210210
raise ValueError(f"Subclasses of httpx.Response cannot be passed to `cast_to`")
211211
return cast(R, response)
212212

213-
if inspect.isclass(origin) and not issubclass(origin, BaseModel) and issubclass(origin, pydantic.BaseModel):
213+
if (
214+
inspect.isclass(
215+
origin # pyright: ignore[reportUnknownArgumentType]
216+
)
217+
and not issubclass(origin, BaseModel)
218+
and issubclass(origin, pydantic.BaseModel)
219+
):
214220
raise TypeError("Pydantic models must subclass our base model type, e.g. `from asktable import BaseModel`")
215221

216222
if (

src/asktable/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "asktable"
4-
__version__ = "4.4.0" # x-release-please-version
4+
__version__ = "4.5.0" # x-release-please-version

src/asktable/types/ai_message.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class AIMessage(BaseModel):
4444
created_at: Optional[datetime] = None
4545
"""创建时间"""
4646

47+
dataframe_ids: Optional[List[str]] = None
48+
4749
end_turn: Optional[bool] = None
4850

4951
metadata: Optional[object] = None

0 commit comments

Comments
 (0)