feat(functions): add py314 to RunTime - #2735
Conversation
Adds "py314" to the Functions RunTime Literal and updates docstrings and the mocked limits fixture accordingly. Ref: #2726
There was a problem hiding this comment.
Code Review
This pull request adds support for the new Python 3.14 runtime ('py314') across the SDK's function APIs, data classes, and unit tests. The feedback points out several docstrings that still incorrectly refer to 'py313' as the latest resolving runtime instead of 'py314', providing actionable suggestions to update them for consistency.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2735 +/- ##
=======================================
Coverage 93.77% 93.77%
=======================================
Files 509 509
Lines 52252 52258 +6
=======================================
+ Hits 48999 49005 +6
Misses 3253 3253
🚀 New features to boost your workflow:
|
Reverts the accidental quoting of `None` to "None" in the runtime docstring, which read as a string literal instead of the singleton.
Pull request was converted to draft
There was a problem hiding this comment.
Code Review
This pull request adds support for the Python 3.14 runtime (py314) to Cognite Functions by updating the RunTime type alias, docstrings, and unit tests. It also introduces several constants and regular expressions to the auto-generated sync API module. I have no feedback to provide as there are no review comments.
Summary
py314to theRunTimeLiteral type incognite/client/data_classes/functions.py_api/functions/__init__.py, regenerated_sync_api/functions/__init__.py) to includepy314in the allowed runtime valuesfunctions/limitstest fixture accordinglyRef: #2726
Test plan
uv run pytest tests/tests_unit/test_api/test_functions.pypassesuv run mypyon touched files passes