You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cognite/client/_api/functions/__init__.py
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -245,6 +245,11 @@ async def create(
245
245
.. note:
246
246
When using a predefined function object, you can list dependencies between the tags `[requirements]` and `[/requirements]` in the function's docstring.
247
247
The dependencies will be parsed and validated in accordance with requirement format specified in `PEP 508 <https://peps.python.org/pep-0508/>`_.
248
+
249
+
.. note:
250
+
Only the source code of the handle function itself is deployed. Non-builtin type
251
+
annotations (e.g. ``client: CogniteClient``) will cause a ``NameError`` at deploy
252
+
time. Either omit the annotation or use string form (e.g. ``client: "CogniteClient"``).
When using a predefined function object, you can list dependencies between the tags `[requirements]` and `[/requirements]` in the function's docstring.
216
216
The dependencies will be parsed and validated in accordance with requirement format specified in `PEP 508 <https://peps.python.org/pep-0508/>`_.
217
+
218
+
.. note:
219
+
Only the source code of the handle function itself is deployed. Non-builtin type
220
+
annotations (e.g. ``client: CogniteClient``) will cause a ``NameError`` at deploy
221
+
time. Either omit the annotation or use string form (e.g. ``client: "CogniteClient"``).
0 commit comments