OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[PyOV] Update Python API stub files (#38494)
sys-openvino-cib9f5bd26c2d9
diff --git a/src/bindings/python/src/openvino/_ov_api.pyi b/src/bindings/python/src/openvino/_ov_api.pyiindex 55a49bc66a4..fb9237e65c6 100644--- a/src/bindings/python/src/openvino/_ov_api.pyi+++ b/src/bindings/python/src/openvino/_ov_api.pyi@@ -16,6 +16,7 @@ from openvino.utils.data_helpers.wrappers import OVDictfrom openvino.utils.data_helpers.wrappers import _InferRequestWrapperfrom openvino.utils.data_helpers.wrappers import tensor_from_filefrom pathlib import Path+from typing import Anyimport collections.abcimport io as ioimport openvino._pyopenvino@@ -25,7 +26,7 @@ import openvino.utils.data_helpers.wrappersimport pathlibimport traceback as tracebackimport typing-__all__: list[str] = ['AsyncInferQueue', 'AsyncInferQueueBase', 'CompiledModel', 'CompiledModelBase', 'Core', 'CoreBase', 'InferRequest', 'Iterator', 'Model', 'ModelBase', 'ModelMeta', 'Node', 'OVDict', 'Path', 'RTMap', 'Tensor', 'TensorVector', 'TracebackType', 'Type', 'compile_model', 'io', 'tensor_from_file', 'traceback']+__all__: list[str] = ['Any', 'AsyncInferQueue', 'AsyncInferQueueBase', 'CompiledModel', 'CompiledModelBase', 'Core', 'CoreBase', 'InferRequest', 'Iterator', 'Model', 'ModelBase', 'ModelMeta', 'Node', 'OVDict', 'Path', 'RTMap', 'Tensor', 'TensorVector', 'TracebackType', 'Type', 'compile_model', 'io', 'tensor_from_file', 'traceback']class AsyncInferQueue(openvino._pyopenvino.AsyncInferQueue):"""AsyncInferQueue with a pool of asynchronous requests.@@ -49,7 +50,7 @@ class AsyncInferQueue(openvino._pyopenvino.AsyncInferQueue)::rtype: openvino.InferRequest"""- def __iter__(self) -> collections.abc.Iterator[InferRequest]:+ def __iter__(self) -> collections.abc.Iterator[openvino._ov_api.InferRequest]:"""Allows to iterate over AsyncInferQueue.diff --git a/src/bindings/python/src/openvino/opset1/ops.pyi b/src/bindings/python/src/openvino/opset1/ops.pyiindex 49e0964d2de..2f148ee7aeb 100644--- a/src/bindings/python/src/openvino/opset1/ops.pyi+++ b/src/bindings/python/src/openvino/opset1/ops.pyi@@ -1,6 +1,5 @@# type: ignorefrom __future__ import annotations-from builtins import list as TensorShapefrom functools import partialfrom openvino._pyopenvino import Nodefrom openvino._pyopenvino import PartialShape@@ -28,6 +27,7 @@ import functoolsimport numpy as npimport openvino._pyopenvinoimport openvino._pyopenvino.op+import typesimport typing"""Factory functions for all openvino ops.@@ -1804,4 +1804,5 @@ NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvinNumericData: typing._UnionGenericAlias # value = typing.Union[int, float, numpy.ndarray]NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]+TensorShape: types.GenericAlias # value = list[int]_get_node_factory_opset1: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset1')diff --git a/src/bindings/python/src/openvino/opset14/ops.pyi b/src/bindings/python/src/openvino/opset14/ops.pyiindex 9d43678a046..052d57600d7 100644--- a/src/bindings/python/src/openvino/opset14/ops.pyi+++ b/src/bindings/python/src/openvino/opset14/ops.pyi@@ -1,6 +1,5 @@# type: ignorefrom __future__ import annotations-from builtins import list as TensorShapefrom functools import partialfrom openvino._pyopenvino import Nodefrom openvino._pyopenvino import Type@@ -10,6 +9,7 @@ from openvino.utils.types import as_nodefrom openvino.utils.types import as_nodesimport functoolsimport openvino._pyopenvino+import typesimport typing"""Factory functions for ops added to openvino opset14.@@ -88,4 +88,5 @@ def max_pool(*args, **kwargs) -> openvino._pyopenvino.Node:"""NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]+TensorShape: types.GenericAlias # value = list[int]_get_node_factory_opset14: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset14')diff --git a/src/bindings/python/src/openvino/opset16/ops.pyi b/src/bindings/python/src/openvino/opset16/ops.pyiindex 01bc8a5713a..68b2f3a4c03 100644--- a/src/bindings/python/src/openvino/opset16/ops.pyi+++ b/src/bindings/python/src/openvino/opset16/ops.pyi@@ -1,6 +1,5 @@# type: ignorefrom __future__ import annotations-from builtins import list as TensorShapefrom functools import partialfrom openvino._pyopenvino import Nodefrom openvino.utils.decorators import nameable_op@@ -9,6 +8,7 @@ from openvino.utils.types import as_nodefrom openvino.utils.types import as_nodesimport functoolsimport openvino._pyopenvino+import typesimport typing"""Factory functions for ops added to openvino opset16.@@ -109,4 +109,5 @@ def sparse_fill_empty_rows(*args, **kwargs) -> openvino._pyopenvino.Node:"""NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]+TensorShape: types.GenericAlias # value = list[int]_get_node_factory_opset16: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset16')diff --git a/src/bindings/python/src/openvino/opset2/ops.pyi b/src/bindings/python/src/openvino/opset2/ops.pyiindex a66ff584787..a3687bc20ff 100644--- a/src/bindings/python/src/openvino/opset2/ops.pyi+++ b/src/bindings/python/src/openvino/opset2/ops.pyi@@ -1,6 +1,5 @@# type: ignorefrom __future__ import annotations-from builtins import list as TensorShapefrom functools import partialfrom openvino._pyopenvino import Nodefrom openvino._pyopenvino import Shape@@ -23,6 +22,7 @@ from openvino.utils.types import get_element_type_strimport functoolsimport numpy as npimport openvino._pyopenvino+import typesimport typingimport warnings as warnings"""@@ -119,4 +119,5 @@ NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvinNumericData: typing._UnionGenericAlias # value = typing.Union[int, float, numpy.ndarray]NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]+TensorShape: types.GenericAlias # value = list[int]_get_node_factory_opset2: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset2')diff --git a/src/bindings/python/src/openvino/opset3/ops.pyi b/src/bindings/python/src/openvino/opset3/ops.pyiindex 51003974480..a2749a158e0 100644--- a/src/bindings/python/src/openvino/opset3/ops.pyi+++ b/src/bindings/python/src/openvino/opset3/ops.pyi@@ -1,6 +1,5 @@# type: ignorefrom __future__ import annotations-from builtins import list as TensorShapefrom functools import partialfrom openvino._pyopenvino import Nodefrom openvino._pyopenvino import Shape@@ -24,6 +23,7 @@ from openvino.utils.types import make_constant_nodeimport functoolsimport numpy as npimport openvino._pyopenvino+import typesimport typing"""Factory functions for all openvino ops.@@ -360,4 +360,5 @@ def topk(*args, **kwargs) -> openvino._pyopenvino.Node:NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]+TensorShape: types.GenericAlias # value = list[int]_get_node_factory_opset3: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset3')diff --git a/src/bindings/python/src/openvino/opset4/ops.pyi b/src/bindings/python/src/openvino/opset4/ops.pyiindex dc6c58b9487..e779e04a9c4 100644--- a/src/bindings/python/src/openvino/opset4/ops.pyi+++ b/src/bindings/python/src/openvino/opset4/ops.pyi@@ -1,6 +1,5 @@# type: ignorefrom __future__ import annotations-from builtins import list as TensorShapefrom functools import partialfrom openvino._pyopenvino import Nodefrom openvino._pyopenvino import Shape@@ -24,6 +23,7 @@ from openvino.utils.types import make_constant_nodeimport functoolsimport numpy as npimport openvino._pyopenvino+import typesimport typing"""Factory functions for all openvino ops.@@ -282,4 +282,5 @@ def swish(*args, **kwargs) -> openvino._pyopenvino.Node:NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]+TensorShape: types.GenericAlias # value = list[int]_get_node_factory_opset4: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset4')diff --git a/src/bindings/python/src/openvino/opset5/ops.pyi b/src/bindings/python/src/openvino/opset5/ops.pyiindex 5da09f0ae41..80797d33e0b 100644--- a/src/bindings/python/src/openvino/opset5/ops.pyi+++ b/src/bindings/python/src/openvino/opset5/ops.pyi@@ -1,6 +1,5 @@# type: ignorefrom __future__ import annotations-from builtins import list as TensorShapefrom functools import partialfrom openvino._pyopenvino import Nodefrom openvino._pyopenvino import Shape@@ -25,6 +24,7 @@ from openvino.utils.types import make_constant_nodeimport functoolsimport numpy as npimport openvino._pyopenvino+import typesimport typing"""Factory functions for all openvino ops.@@ -190,4 +190,5 @@ def round(*args, **kwargs) -> openvino._pyopenvino.Node:NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]+TensorShape: types.GenericAlias # value = list[int]_get_node_factory_opset5: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset5')diff --git a/src/bindings/python/src/openvino/opset6/ops.pyi b/src/bindings/python/src/openvino/opset6/ops.pyiindex b139ea7129f..aabd6101b04 100644--- a/src/bindings/python/src/openvino/opset6/ops.pyi+++ b/src/bindings/python/src/openvino/opset6/ops.pyi@@ -1,6 +1,5 @@# type: ignorefrom __future__ import annotations-from builtins import list as TensorShapefrom functools import partialfrom functools import singledispatchfrom openvino._pyopenvino import Node@@ -24,6 +23,7 @@ import functoolsimport numpy as npimport openvino._pyopenvinoimport openvino.utils.decorators+import typesimport typing__all__: list[str] = ['Constant', 'Node', 'NodeInput', 'NumericType', 'Output', 'Parameter', 'PartialShape', 'Shape', 'TensorShape', 'Type', 'Variable', 'VariableInfo', 'as_node', 'as_nodes', 'assign', 'ctc_greedy_decoder_seq_len', 'gather_elements', 'get_element_type', 'mvn', 'nameable_op', 'np', 'overloading', 'partial', 'read_value', 'singledispatch']def ctc_greedy_decoder_seq_len(*args, **kwargs) -> openvino._pyopenvino.Node:@@ -63,5 +63,6 @@ def mvn(*args, **kwargs) -> openvino._pyopenvino.Node:"""NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]+TensorShape: types.GenericAlias # value = list[int]_get_node_factory_opset6: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset6')read_value: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>diff --git a/src/bindings/python/src/openvino/opset7/ops.pyi b/src/bindings/python/src/openvino/opset7/ops.pyiindex 2764dc0e386..f14857a7c86 100644--- a/src/bindings/python/src/openvino/opset7/ops.pyi+++ b/src/bindings/python/src/openvino/opset7/ops.pyi@@ -1,6 +1,5 @@# type: ignorefrom __future__ import annotations-from builtins import list as TensorShapefrom functools import partialfrom openvino._pyopenvino import Nodefrom openvino._pyopenvino import Shape@@ -23,6 +22,7 @@ from openvino.utils.types import get_element_type_strimport functoolsimport numpy as npimport openvino._pyopenvino+import typesimport typing"""Factory functions for all openvino ops.@@ -96,4 +96,5 @@ def roll(*args, **kwargs) -> openvino._pyopenvino.Node:NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]+TensorShape: types.GenericAlias # value = list[int]_get_node_factory_opset7: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset7')diff --git a/src/bindings/python/src/openvino/opset8/ops.pyi b/src/bindings/python/src/openvino/opset8/ops.pyiindex 8bca4ab2c03..c28464450fb 100644--- a/src/bindings/python/src/openvino/opset8/ops.pyi+++ b/src/bindings/python/src/openvino/opset8/ops.pyi@@ -1,6 +1,5 @@# type: ignorefrom __future__ import annotations-from builtins import list as TensorShapefrom functools import partialfrom openvino._pyopenvino import Nodefrom openvino._pyopenvino.op import Constant@@ -17,6 +16,7 @@ from openvino.utils.types import as_nodesimport functoolsimport numpy as npimport openvino._pyopenvino+import typesimport typing"""Factory functions for all openvino ops.@@ -450,4 +450,5 @@ def softmax(*args, **kwargs) -> openvino._pyopenvino.Node:"""NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]+TensorShape: types.GenericAlias # value = list[int]_get_node_factory_opset8: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset8')diff --git a/src/bindings/python/src/openvino/package_utils.pyi b/src/bindings/python/src/openvino/package_utils.pyiindex 51b332df5cd..07255153f98 100644--- a/src/bindings/python/src/openvino/package_utils.pyi+++ b/src/bindings/python/src/openvino/package_utils.pyi@@ -4,12 +4,13 @@ from builtins import module as ModuleTypefrom collections.abc import Callablefrom functools import wrapsfrom pathlib import Path+from typing import Anyimport collections.abcimport importlib as importlibimport os as osimport sys as sysimport typing-__all__: list[str] = ['Callable', 'LazyLoader', 'ModuleType', 'Path', 'classproperty', 'deprecated', 'deprecatedclassproperty', 'get_cmake_path', 'importlib', 'os', 'sys', 'wraps']+__all__: list[str] = ['Any', 'Callable', 'LazyLoader', 'ModuleType', 'Path', 'classproperty', 'deprecated', 'deprecatedclassproperty', 'get_cmake_path', 'importlib', 'os', 'sys', 'wraps']class LazyLoader:"""A class to lazily load a module, importing it only when an attribute is accessed.@@ -43,7 +44,7 @@ def deprecated(name: typing.Any = None, version: str = '', message: str = '', st:param message: A message explaining why the function is deprecated and/or what to use instead."""-def deprecatedclassproperty(name: typing.Any = None, version: str = '', message: str = '', stacklevel: int = 2) -> collections.abc.Callable[[typing.Any], _ClassPropertyDescriptor]:+def deprecatedclassproperty(name: typing.Any = None, version: str = '', message: str = '', stacklevel: int = 2) -> collections.abc.Callable[[typing.Any], openvino.package_utils._ClassPropertyDescriptor]:...def get_cmake_path() -> str:"""diff --git a/src/bindings/python/src/openvino/properties/_properties.pyi b/src/bindings/python/src/openvino/properties/_properties.pyiindex 9130e268a68..234fd70d704 100644--- a/src/bindings/python/src/openvino/properties/_properties.pyi+++ b/src/bindings/python/src/openvino/properties/_properties.pyi@@ -3,10 +3,10 @@ from __future__ import annotationsfrom builtins import builtin_function_or_method as BuiltinFunctionTypefrom builtins import module as ModuleTypefrom collections.abc import Callable-import collections.abc+from typing import Anyimport sys as sysimport typing-__all__: list[str] = ['BuiltinFunctionType', 'Callable', 'ModuleType', 'Property', 'sys']+__all__: list[str] = ['Any', 'BuiltinFunctionType', 'Callable', 'ModuleType', 'Property', 'sys']class Property(str):"""This class allows to make a string object callable. Call returns underlying string's data.diff --git a/src/bindings/python/src/openvino/tools/ovc/convert.pyi b/src/bindings/python/src/openvino/tools/ovc/convert.pyiindex 8f394793729..92d3444f3a9 100644--- a/src/bindings/python/src/openvino/tools/ovc/convert.pyi+++ b/src/bindings/python/src/openvino/tools/ovc/convert.pyi@@ -5,9 +5,11 @@ from openvino.tools.ovc.cli_parser import get_all_cli_parserfrom openvino.tools.ovc.convert_impl import _convertfrom openvino.tools.ovc.logger import get_logger_statefrom openvino.tools.ovc.logger import restore_logger_state+from typing import Anyimport openvino._ov_apiimport pathlib as pathlib-__all__: list[str] = ['Model', 'convert_model', 'get_all_cli_parser', 'get_logger_state', 'pathlib', 'restore_logger_state']+import typing+__all__: list[str] = ['Any', 'Model', 'convert_model', 'get_all_cli_parser', 'get_logger_state', 'pathlib', 'restore_logger_state']def convert_model(input_model: [str, pathlib.Path, typing.Any, list], input: [list, dict, str] = None, output: [str, list] = None, example_input: typing.Any = None, extension: [str, pathlib.Path, list, typing.Any] = None, verbose: bool = False, share_weights: bool = True, dynamo: bool = False) -> openvino._ov_api.Model:"""diff --git a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/extractor.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/extractor.pyiindex 3422e1423bc..fa17032ca7f 100644--- a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/extractor.pyi+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/extractor.pyi@@ -13,9 +13,6 @@ import re as reimport typing__all__: list[str] = ['Enum', 'Error', 'IOType', 'InputModel', 'PartialShape', 'Place', 'convert_params_lists_to_dicts', 'decode_name_with_port', 'fe_input_user_data_repack', 'fe_output_user_data_repack', 'fe_user_data_repack', 'find_first_unused_input', 'np', 'raise_no_node', 'raise_node_name_collision', 're']class IOType(enum.Enum):- """- An enumeration.- """Input: typing.ClassVar[IOType] # value = <IOType.Input: 1>Output: typing.ClassVar[IOType] # value = <IOType.Output: 2>def convert_params_lists_to_dicts(input_model, input_user_shapes: [list, dict], input_user_data_types: [list, dict]):diff --git a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/pipeline.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/pipeline.pyiindex 84b58dc6b6a..618a10d42cf 100644--- a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/pipeline.pyi+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/pipeline.pyi@@ -18,7 +18,6 @@ import argparse as argparseimport logging as logimport numpyimport numpy as np-import openvino._pyopenvinoimport openvino.frontend.frontendimport os as osimport sys as sysdiff --git a/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.pyi b/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.pyiindex 968949c2948..5ffd774539d 100644--- a/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.pyi+++ b/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.pyi@@ -7,11 +7,12 @@ from openvino._pyopenvino import Tensorfrom openvino._pyopenvino import Typefrom openvino.utils.data_helpers.wrappers import OVDictfrom openvino.utils.data_helpers.wrappers import _InferRequestWrapper+from typing import Anyimport numpy as npimport openvino._pyopenvinoimport openvino.utils.data_helpers.wrappersimport typing-__all__: list[str] = ['ConstOutput', 'ContainerTypes', 'OVDict', 'RemoteTensor', 'ScalarTypes', 'Tensor', 'Type', 'ValidKeys', 'create_copied', 'create_shared', 'get_request_tensor', 'is_list_simple_type', 'normalize_arrays', 'np', 'set_request_tensor', 'singledispatch', 'to_c_style', 'update_inputs', 'update_tensor', 'value_to_tensor']+__all__: list[str] = ['Any', 'ConstOutput', 'ContainerTypes', 'OVDict', 'RemoteTensor', 'ScalarTypes', 'Tensor', 'Type', 'ValidKeys', 'create_copied', 'create_shared', 'get_request_tensor', 'is_list_simple_type', 'normalize_arrays', 'np', 'set_request_tensor', 'singledispatch', 'to_c_style', 'update_inputs', 'update_tensor', 'value_to_tensor']def _(inputs: typing.Union[openvino._pyopenvino.Tensor, numpy.number, int, float, str, bytes], request: openvino.utils.data_helpers.wrappers._InferRequestWrapper) -> openvino._pyopenvino.Tensor:...def _data_dispatch(request: openvino.utils.data_helpers.wrappers._InferRequestWrapper, inputs: typing.Union[dict, list, tuple, openvino.utils.data_helpers.wrappers.OVDict, openvino._pyopenvino.Tensor, numpy.ndarray, numpy.number, int, float, str] = None, is_shared: bool = False) -> typing.Union[dict, openvino._pyopenvino.Tensor]:diff --git a/src/bindings/python/src/openvino/utils/data_helpers/wrappers.pyi b/src/bindings/python/src/openvino/utils/data_helpers/wrappers.pyiindex 7ecf15bd8f6..88ba18b6bd1 100644--- a/src/bindings/python/src/openvino/utils/data_helpers/wrappers.pyi+++ b/src/bindings/python/src/openvino/utils/data_helpers/wrappers.pyi@@ -73,7 +73,7 @@ class OVDict(collections.abc.Mapping):"""def __getitem__(self, key: typing.Union[openvino._pyopenvino.ConstOutput, int, str]) -> numpy.ndarray:...- def __init__(self, _dict: dict[openvino._pyopenvino.ConstOutput, numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]]) -> None:+ def __init__(self, _dict: dict[openvino._pyopenvino.ConstOutput, numpy.ndarray]) -> None:...def __iter__(self) -> collections.abc.Iterator:...@@ -81,7 +81,7 @@ class OVDict(collections.abc.Mapping):...def __repr__(self) -> str:...- def items(self) -> collections.abc.ItemsView[openvino._pyopenvino.ConstOutput, numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]]:+ def items(self) -> collections.abc.ItemsView[openvino._pyopenvino.ConstOutput, numpy.ndarray]:...def keys(self) -> collections.abc.KeysView[openvino._pyopenvino.ConstOutput]:...@@ -92,7 +92,7 @@ class OVDict(collections.abc.Mapping):Insert empty set if key has no name."""- def to_dict(self) -> dict[openvino._pyopenvino.ConstOutput, numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]]:+ def to_dict(self) -> dict[openvino._pyopenvino.ConstOutput, numpy.ndarray]:"""Return underlaying native dictionary.@@ -104,7 +104,7 @@ class OVDict(collections.abc.Mapping):"""Convert values of this dictionary to a tuple."""- def values(self) -> collections.abc.ValuesView[numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]]:+ def values(self) -> collections.abc.ValuesView[numpy.ndarray]:...class _InferRequestWrapper(openvino._pyopenvino.InferRequest):"""diff --git a/src/bindings/python/src/openvino/utils/decorators.pyi b/src/bindings/python/src/openvino/utils/decorators.pyiindex 0cb5918087a..78ec8204dbc 100644--- a/src/bindings/python/src/openvino/utils/decorators.pyi+++ b/src/bindings/python/src/openvino/utils/decorators.pyi@@ -7,12 +7,13 @@ from openvino._pyopenvino import Nodefrom openvino._pyopenvino import Outputfrom openvino.utils.types import as_nodefrom openvino.utils.types import as_nodes+from typing import Anyfrom typing import get_argsfrom typing import get_originimport collections.abcimport openvino._pyopenvinoimport typing-__all__: list[str] = ['Callable', 'MultiMethod', 'Node', 'NodeInput', 'Output', 'as_node', 'as_nodes', 'binary_op', 'custom_preprocess_function', 'get_args', 'get_origin', 'nameable_op', 'overloading', 'registry', 'signature', 'unary_op', 'wraps']+__all__: list[str] = ['Any', 'Callable', 'MultiMethod', 'Node', 'NodeInput', 'Output', 'as_node', 'as_nodes', 'binary_op', 'custom_preprocess_function', 'get_args', 'get_origin', 'nameable_op', 'overloading', 'registry', 'signature', 'unary_op', 'wraps']class MultiMethod:def __call__(self, *args, **kwargs) -> typing.Any:...diff --git a/src/bindings/python/src/openvino/utils/input_validation.pyi b/src/bindings/python/src/openvino/utils/input_validation.pyiindex 2fceb83ca26..178c6a3deb6 100644--- a/src/bindings/python/src/openvino/utils/input_validation.pyi+++ b/src/bindings/python/src/openvino/utils/input_validation.pyi@@ -3,13 +3,13 @@ from __future__ import annotationsfrom collections.abc import Callablefrom collections.abc import Iterablefrom openvino.exceptions import UserInputError-import collections.abc+from typing import Anyimport logging as loggingimport numpy as np"""Helper functions for validating user input."""-__all__: list[str] = ['Callable', 'Iterable', 'UserInputError', 'assert_list_of_ints', 'check_valid_attribute', 'check_valid_attributes', 'is_non_negative_value', 'is_positive_value', 'log', 'logging', 'np']+__all__: list[str] = ['Any', 'Callable', 'Iterable', 'UserInputError', 'assert_list_of_ints', 'check_valid_attribute', 'check_valid_attributes', 'is_non_negative_value', 'is_positive_value', 'log', 'logging', 'np']def _check_value(op_name, attr_key, value, val_type, cond = None):"""Check whether provided value satisfies specified criteria.diff --git a/src/bindings/python/src/openvino/utils/node_factory.pyi b/src/bindings/python/src/openvino/utils/node_factory.pyiindex 08fac3e0067..f20a08eec83 100644--- a/src/bindings/python/src/openvino/utils/node_factory.pyi+++ b/src/bindings/python/src/openvino/utils/node_factory.pyi@@ -7,15 +7,15 @@ from openvino._pyopenvino import NodeFactory as _NodeFactoryfrom openvino._pyopenvino import Outputfrom openvino.exceptions import UserInputErrorfrom pathlib import Path+from typing import Anyimport openvino._pyopenvino-import typing-__all__: list[str] = ['DEFAULT_OPSET', 'Extension', 'Node', 'NodeFactory', 'Output', 'Path', 'UserInputError', 'singledispatchmethod']+__all__: list[str] = ['Any', 'DEFAULT_OPSET', 'Extension', 'Node', 'NodeFactory', 'Output', 'Path', 'UserInputError', 'singledispatchmethod']class NodeFactory:"""Factory front-end to create node objects."""@staticmethod- def _arguments_as_outputs(arguments: list[openvino._pyopenvino.Node | openvino._pyopenvino.Output]) -> list[openvino._pyopenvino.Output]:+ def _arguments_as_outputs(arguments: list[typing.Union[openvino._pyopenvino.Node, openvino._pyopenvino.Output]]) -> list[openvino._pyopenvino.Output]:...@staticmethoddef add_extension(*args, **kwargs) -> None:diff --git a/src/bindings/python/src/openvino/utils/postponed_constant.pyi b/src/bindings/python/src/openvino/utils/postponed_constant.pyiindex ab16868f7b3..9d140ff556c 100644--- a/src/bindings/python/src/openvino/utils/postponed_constant.pyi+++ b/src/bindings/python/src/openvino/utils/postponed_constant.pyi@@ -7,7 +7,6 @@ from openvino._pyopenvino import Shapefrom openvino._pyopenvino import Tensorfrom openvino._pyopenvino import TensorVectorfrom openvino._pyopenvino import Type-import collections.abcimport openvino._op_baseimport openvino._pyopenvino__all__: list[str] = ['Callable', 'Op', 'PartialShape', 'PostponedConstant', 'Shape', 'Tensor', 'TensorVector', 'Type', 'make_postponed_constant']diff --git a/src/bindings/python/src/openvino/utils/types.pyi b/src/bindings/python/src/openvino/utils/types.pyiindex 99537b67253..bc3f9cbb00e 100644--- a/src/bindings/python/src/openvino/utils/types.pyi+++ b/src/bindings/python/src/openvino/utils/types.pyi@@ -1,6 +1,5 @@# type: ignorefrom __future__ import annotations-from builtins import list as TensorShapefrom openvino._pyopenvino import Nodefrom openvino._pyopenvino import Outputfrom openvino._pyopenvino import Shape@@ -12,6 +11,7 @@ import numpyimport numpy as npimport openvino._pyopenvinoimport openvino._pyopenvino.op+import typesimport typing"""Functions related to converting between Python and numpy types and openvino types.@@ -57,6 +57,7 @@ NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvinNumericData: typing._UnionGenericAlias # value = typing.Union[int, float, numpy.ndarray]NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]+TensorShape: types.GenericAlias # value = list[int]log: logging.Logger # value = <Logger openvino.utils.types (INFO)>openvino_to_numpy_types_map: list # value = [(<Type: 'char'>, bool), (<Type: 'char'>, numpy.bool), (<Type: 'float16'>, numpy.float16), (<Type: 'float32'>, numpy.float32), (<Type: 'double64'>, numpy.float64), (<Type: 'int8_t'>, numpy.int8), (<Type: 'int16_t'>, numpy.int16), (<Type: 'int32_t'>, numpy.int32), (<Type: 'int64_t'>, numpy.int64), (<Type: 'uint8_t'>, numpy.uint8), (<Type: 'uint16_t'>, numpy.uint16), (<Type: 'uint32_t'>, numpy.uint32), (<Type: 'uint64_t'>, numpy.uint64), (<Type: 'bfloat16'>, numpy.uint16), (<Type: 'string'>, str), (<Type: 'string'>, numpy.str_), (<Type: 'string'>, bytes), (<Type: 'string'>, numpy.bytes_)]openvino_to_numpy_types_str_map: list = [('boolean', bool), ('boolean', numpy.bool), ('f16', numpy.float16), ('f32', numpy.float32), ('f64', numpy.float64), ('i8', numpy.int8), ('i16', numpy.int16), ('i32', numpy.int32), ('i64', numpy.int64), ('u8', numpy.uint8), ('u16', numpy.uint16), ('u32', numpy.uint32), ('u64', numpy.uint64), ('string', str), ('string', numpy.str_), ('string', bytes), ('string', numpy.bytes_)]