Python 3.14 emits SyntaxWarning for return in finally block
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 83/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- backend-api-design
Research direction
Open pyobvector/client/ob_vec_json_table_client.py around line 799 and inspect the cleanup path containing the return in the finally block. Reproduce the import warning on Python 3.14, then verify that the warning is gone and exceptions from the try block are no longer suppressed; consider updating the compatibility matrix as requested.
Written by the indexing model from the issue text.
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
return n_new_records
This is non-fatal on the normal path, but a return in finally can suppress exceptions from the try block. It also makes CLIs that import the package appear broken. Please move the return after cleanup (or otherwise avoid returning from finally) and consider Python 3.14 in the compatibility matrix.
- Dominant language
- Python
- Stars
- 19
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from oceanbase/pyobvector
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
oceanbase/pyobvector#76 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
oceanbase/pyobvector#75 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
oceanbase/pyobvector#74 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
oceanbase/pyobvector#72 ·
All issues in oceanbase/pyobvector
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100