Skip to content

feat(functions): add py314 to RunTime - #2735

Merged
dbrattli merged 10 commits into
masterfrom
feat/functions-py314-runtime
Aug 6, 2026
Merged

feat(functions): add py314 to RunTime#2735
dbrattli merged 10 commits into
masterfrom
feat/functions-py314-runtime

Conversation

@dbrattli

Copy link
Copy Markdown
Contributor

Summary

  • Add py314 to the RunTime Literal type in cognite/client/data_classes/functions.py
  • Update Functions API docstrings (_api/functions/__init__.py, regenerated _sync_api/functions/__init__.py) to include py314 in the allowed runtime values
  • Update the mocked functions/limits test fixture accordingly

Ref: #2726

Test plan

  • uv run pytest tests/tests_unit/test_api/test_functions.py passes
  • uv run mypy on touched files passes

Adds "py314" to the Functions RunTime Literal and updates docstrings
and the mocked limits fixture accordingly.

Ref: #2726
@dbrattli
dbrattli requested review from a team as code owners July 31, 2026 12:09

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread cognite/client/data_classes/functions.py Outdated
Comment thread cognite/client/data_classes/functions.py Outdated
Comment thread cognite/client/data_classes/functions.py Outdated
Comment thread cognite/client/_api/functions/__init__.py Outdated
dbrattli and others added 2 commits July 31, 2026 14:11
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>
haakonvt
haakonvt previously approved these changes Jul 31, 2026

@haakonvt haakonvt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦄

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

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.77%. Comparing base (d7806bd) to head (1a57b0d).
⚠️ Report is 1 commits behind head on master.

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           
Files with missing lines Coverage Δ
cognite/client/_api/functions/__init__.py 94.81% <ø> (ø)
cognite/client/_sync_api/functions/__init__.py 100.00% <100.00%> (ø)
cognite/client/data_classes/functions.py 95.49% <100.00%> (ø)
tests/tests_unit/test_api/test_functions.py 96.82% <ø> (ø)

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dbrattli
dbrattli enabled auto-merge July 31, 2026 12:34
Comment thread cognite/client/_api/functions/__init__.py Outdated
Reverts the accidental quoting of `None` to "None" in the runtime
docstring, which read as a string literal instead of the singleton.

@haakonvt haakonvt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦄

@dbrattli
dbrattli marked this pull request as draft August 3, 2026 08:14
auto-merge was automatically disabled August 3, 2026 08:14

Pull request was converted to draft

@dbrattli
dbrattli marked this pull request as ready for review August 6, 2026 10:06
@dbrattli
dbrattli added this pull request to the merge queue Aug 6, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Merged via the queue into master with commit cf66c51 Aug 6, 2026
36 of 37 checks passed
@dbrattli
dbrattli deleted the feat/functions-py314-runtime branch August 6, 2026 10:14
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