Summary
Importing pyobvector on Python 3.14 emits a SyntaxWarning because ob_vec_json_table_client.py returns from a finally block.
Reproduction
Environment:
- Python 3.14.x
- pyobvector 0.2.28
Running a CLI that imports the package (for example, a PowerContext server/configuration command) produces:
.../site-packages/pyobvector/client/ob_vec_json_table_client.py:799: SyntaxWarning: 'return' in a 'finally' block
return n_new_records
Impact
This is non-fatal on the normal path, but Python warns that a return in finally can suppress an exception raised by the try block. It also makes every importing CLI appear to have failed or misconfigured on Python 3.14.
Suggested fix
Move the return after the try/finally cleanup (or otherwise avoid returning from finally) so exceptions are not masked. Please consider adding Python 3.14 to the compatibility test matrix.
Thank you!
Summary
Importing
pyobvectoron Python 3.14 emits aSyntaxWarningbecauseob_vec_json_table_client.pyreturns from afinallyblock.Reproduction
Environment:
Running a CLI that imports the package (for example, a PowerContext server/configuration command) produces:
Impact
This is non-fatal on the normal path, but Python warns that a return in
finallycan suppress an exception raised by thetryblock. It also makes every importing CLI appear to have failed or misconfigured on Python 3.14.Suggested fix
Move the return after the
try/finallycleanup (or otherwise avoid returning fromfinally) so exceptions are not masked. Please consider adding Python 3.14 to the compatibility test matrix.Thank you!