Skip to content

Feat/endee version#715

Merged
XuanYang-cn merged 3 commits intozilliztech:mainfrom
endee-io:feat/endee_version
Feb 10, 2026
Merged

Feat/endee version#715
XuanYang-cn merged 3 commits intozilliztech:mainfrom
endee-io:feat/endee_version

Conversation

@MithunEndee
Copy link
Contributor

Added specific version of Endee to match the compatibility of Pydantic<v2

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: MithunEndee
To complete the pull request process, please assign xuanyang-cn after the PR has been reviewed.
You can assign the PR to them by writing /assign @xuanyang-cn in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@MithunEndee
Copy link
Contributor Author

Hi @XuanYang-cn,

I’ve noticed the CI is failing on the linting step with several UP042 errors (e.g., in backend/clients/api.py and elastic_cloud/config.py).

These errors appear to be "pre-existing" linting issues triggered by the environment difference:

  • Locally: My environment (Python < 3.11) passes all checks.
  • CI: The Python 3.12 runner is flagging that class Name(str, Enum) should be modernized to class Name(StrEnum).

Since these failures are in files unrelated to my specific changes, please look into the linting issues of other files.

PYTHONPATH=`pwd` python3 -m black vectordb_bench --check
All done! ✨ 🍰 ✨
190 files would be left unchanged.
PYTHONPATH=`pwd` python3 -m ruff check vectordb_bench
UP042 Class MetricType inherits from both `str` and `enum.Enum`
  --> vectordb_bench/backend/clients/api.py:10:7
   |
10 | class MetricType(str, Enum):
   |       ^^^^^^^^^^
11 |     L2 = "L2"
12 |     COSINE = "COSINE"
   |
help: Inherit from `enum.StrEnum`

UP042 Class IndexType inherits from both `str` and `enum.Enum`
  --> vectordb_bench/backend/clients/api.py:19:7
   |
19 | class IndexType(str, Enum):
   |       ^^^^^^^^^
20 |     HNSW = "HNSW"
21 |     HNSW_SQ = "HNSW_SQ"
   |
help: Inherit from `enum.StrEnum`

UP042 Class SQType inherits from both `str` and `enum.Enum`
  --> vectordb_bench/backend/clients/api.py:50:7
   |
50 | class SQType(str, Enum):
   |       ^^^^^^
51 |     SQ6 = "SQ6"
52 |     SQ8 = "SQ8"
   |
help: Inherit from `enum.StrEnum`

UP042 Class ESElementType inherits from both `str` and `enum.Enum`
  --> vectordb_bench/backend/clients/elastic_cloud/config.py:19:7
   |
19 | class ESElementType(str, Enum):
   |       ^^^^^^^^^^^^^
20 |     float = "float"  # 4 byte
21 |     byte = "byte"  # 1 byte, -128 to 127
   |
help: Inherit from `enum.StrEnum`

UP042 Class ESElementType inherits from both `str` and `enum.Enum`
  --> vectordb_bench/backend/clients/tencent_elasticsearch/config.py:23:7
   |
23 | class ESElementType(str, Enum):
   |       ^^^^^^^^^^^^^
24 |     float = "float"  # 4 byte
25 |     byte = "byte"  # 1 byte, -128 to 127
   |
help: Inherit from `enum.StrEnum`

Found 5 errors.
No fixes available (5 hidden fixes can be enabled with the `--unsafe-fixes` option).
make: *** [Makefile:10: lint] Error 1
Error: Process completed with exit code 2.

@XuanYang-cn
Copy link
Collaborator

@MithunEndee Please update the latest code to pass the coding style action, I've fixed them in #722

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
@XuanYang-cn XuanYang-cn merged commit e89c445 into zilliztech:main Feb 10, 2026
4 checks passed
Poisky pushed a commit to Poisky/VectorDBBench_Lindorm that referenced this pull request Feb 12, 2026
* upstream/main:
  Feat/endee version (zilliztech#715)
  fix: Use StrEnum instead of str, Enum (zilliztech#722)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants