Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "4.4.0"
".": "4.5.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 91
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-f081d80ec1b3a4951cccc2a085d46405da9aea9da7295cc264e834ada84127eb.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-69140680dde56332aa42ebbfbe12c0c3db2adf3904e4a821cee6465e491f4c57.yml
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Changelog

## 4.5.0 (2025-01-19)

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

### Features

* **api:** api update ([#134](https://github.com/DataMini/asktable-python/issues/134)) ([6d30087](https://github.com/DataMini/asktable-python/commit/6d30087ca2351d75443935907e7749fdfc96d1cf))
* **api:** update organization info ([#135](https://github.com/DataMini/asktable-python/issues/135)) ([bad8bba](https://github.com/DataMini/asktable-python/commit/bad8bba976aa94114c4b6a801b31189913aa7699))


### Bug Fixes

* type hint in custom code ([643d5c2](https://github.com/DataMini/asktable-python/commit/643d5c274950f7a6af11e5c1a8127ce70db82ada))


### Chores

* **internal:** codegen related update ([#132](https://github.com/DataMini/asktable-python/issues/132)) ([f167bd7](https://github.com/DataMini/asktable-python/commit/f167bd73704e7e7c372ecc3aa73a64efbaa0d13b))

## 4.4.0 (2025-01-15)

Full Changelog: [v4.3.0...v4.4.0](https://github.com/DataMini/asktable-python/compare/v4.3.0...v4.4.0)
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ cache_fine_grained = True
# ```
# Changing this codegen to make mypy happy would increase complexity
# and would not be worth it.
disable_error_code = func-returns-value
disable_error_code = func-returns-value,overload-cannot-match

# https://github.com/python/mypy/issues/12162
[mypy.overrides]
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "asktable"
version = "4.4.0"
description = "The official Python library for the asktable API"
version = "4.5.0"
description = "The official Python library for the Asktable API"
dynamic = ["readme"]
license = "Apache-2.0"
authors = [
Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ markdown-it-py==3.0.0
# via rich
mdurl==0.1.2
# via markdown-it-py
mypy==1.13.0
mypy==1.14.1
mypy-extensions==1.0.0
# via mypy
nest-asyncio==1.6.0
Expand All @@ -68,7 +68,7 @@ pydantic-core==2.27.1
# via pydantic
pygments==2.18.0
# via rich
pyright==1.1.390
pyright==1.1.392.post0
pytest==8.3.3
# via pytest-asyncio
pytest-asyncio==0.24.0
Expand Down
4 changes: 2 additions & 2 deletions src/asktable/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __init__(
# part of our public interface in the future.
_strict_response_validation: bool = False,
) -> None:
"""Construct a new synchronous asktable client instance.
"""Construct a new synchronous Asktable client instance.

This automatically infers the `api_key` argument from the `ASKTABLE_API_KEY` environment variable if it is not provided.
"""
Expand Down Expand Up @@ -314,7 +314,7 @@ def __init__(
# part of our public interface in the future.
_strict_response_validation: bool = False,
) -> None:
"""Construct a new async asktable client instance.
"""Construct a new async Asktable client instance.

This automatically infers the `api_key` argument from the `ASKTABLE_API_KEY` environment variable if it is not provided.
"""
Expand Down
8 changes: 7 additions & 1 deletion src/asktable/_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,13 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
raise ValueError(f"Subclasses of httpx.Response cannot be passed to `cast_to`")
return cast(R, response)

if inspect.isclass(origin) and not issubclass(origin, BaseModel) and issubclass(origin, pydantic.BaseModel):
if (
inspect.isclass(
origin # pyright: ignore[reportUnknownArgumentType]
)
and not issubclass(origin, BaseModel)
and issubclass(origin, pydantic.BaseModel)
):
raise TypeError("Pydantic models must subclass our base model type, e.g. `from asktable import BaseModel`")

if (
Expand Down
2 changes: 1 addition & 1 deletion src/asktable/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "asktable"
__version__ = "4.4.0" # x-release-please-version
__version__ = "4.5.0" # x-release-please-version
2 changes: 2 additions & 0 deletions src/asktable/types/ai_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class AIMessage(BaseModel):
created_at: Optional[datetime] = None
"""创建时间"""

dataframe_ids: Optional[List[str]] = None

end_turn: Optional[bool] = None

metadata: Optional[object] = None
Expand Down
Loading