Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[PyOV] Update Python API stub files (#35819)

sys-openvino-ci37777f1ff8b2
diff --git a/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi b/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi
index 8180bb22d31..4e50c82a065 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi
@@ -183,6 +183,8 @@ class _PagedAttentionExtension(openvino._pyopenvino.Node):
"""
def __init__(self, arg0: collections.abc.Sequence[openvino._pyopenvino.Output]) -> None:
...
+ def get_write_kv_cache(self) -> bool:
+ ...
class assign(openvino._pyopenvino.Node):
"""
openvino.op.assign wraps ov::op::v6::Assign
diff --git a/src/bindings/python/src/openvino/opset17/__init__.pyi b/src/bindings/python/src/openvino/opset17/__init__.pyi
index eb78e360c9f..613e91cf5e4 100644
--- a/src/bindings/python/src/openvino/opset17/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset17/__init__.pyi
@@ -1,3 +1,5 @@
# type: ignore
+from . import ops
from __future__ import annotations
-__all__: list[str] = list()
+from openvino.opset17.ops import erfinv
+__all__: list[str] = ['erfinv', 'ops']
diff --git a/src/bindings/python/src/openvino/opset17/ops.pyi b/src/bindings/python/src/openvino/opset17/ops.pyi
new file mode 100644
index 00000000000..66845415962
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset17/ops.pyi
@@ -0,0 +1,24 @@
+# type: ignore
+from __future__ import annotations
+from functools import partial
+from openvino._pyopenvino import Node
+from openvino.utils.decorators import unary_op
+from openvino.utils.node_factory import _get_node_factory
+import functools
+import openvino._pyopenvino
+import typing
+"""
+Factory functions for ops added to openvino opset17.
+"""
+__all__: list[str] = ['Node', 'NodeInput', 'erfinv', 'partial', 'unary_op']
+def erfinv(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which calculates the inverse error function element-wise on the input tensor.
+
+ :param node: The node providing data for the operation. Must be of floating-point type.
+ :param name: The optional name for the new output node.
+ :return: The new node performing the element-wise ErfInv operation.
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+_get_node_factory_opset17: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset17')