oceanbase / oceanbase/pyobvector

Python 3.14 emits SyntaxWarning for return in finally block

Open Beginner friendly
#76 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
19
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Importing pyobvector 0.2.28 on Python 3.14 emits a SyntaxWarning because ob_vec_json_table_client.py returns from a finally block. Reproduction: site-packages/pyobvector/client/ob_vec_json_table_client.py:799 SyntaxWarning return in a finally block. This is non-fatal on normal path, but return in finally can suppress exceptions. Please move the return after cleanup and consider Python 3.14 in the compatibility matrix.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with pyobvector/client/ob_vec_json_table_client.py around line 799 and reproduce the SyntaxWarning on Python 3.14. Inspect the surrounding cleanup and return flow, then verify that cleanup still occurs without suppressing exceptions. The issue is done when importing the package no longer emits this warning and the compatibility matrix reflects Python 3.14 if applicable.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
84/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.