4.37.0

(feat): 分页功能:page.response 现在是每页的类型化 API 响应对象(例如 ListUsersPaginationResponse),而不是原始的 HTTP 包装器。这只是一个类型改进;运行时行为没有变化,现有代码继续有效。如果您明确为分页器添加类型注解,请使用两个类型参数(SyncPager[T, R] / AsyncPager[T, R])。

1# 遍历页面并访问每页的类型化响应
2pager = client.users.list(...)
3for page in pager.iter_pages():
4 print(page.response) # 类型化响应对象