[Bug] - DeprecationWarning on instantiation of Client
评估
调研方向
Start by reviewing the deprecation implementation referenced in issue #107 and the Client initialization path that produces the AnalyticsRulesV1 warning. Reproduce the provided Client(config) example, then verify that normal instantiation no longer emits this warning while the intended deprecation behavior remains covered.
由索引模型根据 Issue 内容生成。
描述
Hi there,
It looks like based on how the deprecations were implemented in #107 results in a DeprecationWarning on instantiating a client, e.g:
>>> config = {
... "api_key": "your_api_key",
... "nodes": [
... {"host": "localhost", "port": "8108", "protocol": "http"}
... ],
... "connection_timeout_seconds": 2,
... }
>>> client = Client(config)
Deprecation warning: AnalyticsRulesV1 is deprecated on v30+. Use client.analytics instead.
It would be great for this not to happen, since it fills up logs with noise.
- 主要语言
- Python
- 星标
- 247
- 派生
- 66
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 7
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
typesense/typesense-python 的其他 Issue
-
IPv6 node addresses produce an invalid request URL可能已有人在做 @RaphaelFakhri 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
typesense/typesense-python#154 ·
-
`MultiSearchResponse` type does not account for union search response shape可能已有人在做 @tharropoulos 于 171 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
typesense/typesense-python#128 ·
-
`documents.Documents.import_()` `batch_size` argument is ignored, type of `import_parameters` is missing `batch_size`可能已有人在做 @tharropoulos 于 244 天前认领。 未关闭
难度 2/5 1-2 天 新手友好度 68/100
typesense/typesense-python#124 ·
-
难度 1/5 1 小时以内 新手友好度 68/100
typesense/typesense-python#100 ·
-
难度 3/5 1-2 天 新手友好度 35/100
typesense/typesense-python#122 · 3 条评论 ·
查看 typesense/typesense-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
gramaziokohler/compas_timber#870 ·
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
autowarefoundation/autoware_carla_scenario#500 ·
维护者通常 1 天内回复
-
good first issue priority: low size: XS testing
难度 1/5 1-3 小时 新手友好度 86/100
cubrid-lab/cubrid-mcp-server#385 ·
维护者通常 1 天内回复
-
good first issue priority: low size: S testing
难度 2/5 1-3 小时 新手友好度 85/100
cubrid-lab/cubrid-cookbook-python#447 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100