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 (#37330)
sys-openvino-ci85846b1e04e4
diff --git a/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi b/src/bindings/python/src/openvino/_pyopenvino/__init__.pyiindex f1ece401d41..1e7147d1721 100644--- a/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi+++ b/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi@@ -431,12 +431,14 @@ class ConstOutput::return: Copy of PartialShape of the output.:rtype: openvino.PartialShape"""- def get_rt_info(self) -> RTMap:+ def get_rt_info(self) -> typing.Any:"""- Returns RTMap which is a dictionary of user defined runtime info.+ Returns a view of the RTMap for this output.+ Reads are transparent; writes are deprecated (to be removed in 2027.0).+ Use a non-const output to modify runtime info.- :return: A dictionary of user defined data.- :rtype: openvino.RTMap+ :return: View of runtime info dictionary.+ :rtype: openvino.RTMap"""def get_shape(self) -> Shape:"""@@ -479,7 +481,7 @@ class ConstOutput:def partial_shape(self) -> PartialShape:...@property- def rt_info(self) -> RTMap:+ def rt_info(self) -> typing.Any:...@propertydef shape(self) -> Shape:@@ -3779,10 +3781,10 @@ class Output:"""def get_rt_info(self) -> RTMap:"""- Returns RTMap which is a dictionary of user defined runtime info.+ Returns RTMap which is a dictionary of user defined runtime info.- :return: A dictionary of user defined data.- :rtype: openvino.RTMap+ :return: A dictionary of user defined data.+ :rtype: openvino.RTMap"""def get_shape(self) -> Shape:"""@@ -5221,6 +5223,33 @@ class Version::return: OpenVINO's version patch.:rtype: int"""+class _ConstRTMapView(RTMap):+ def __bool__(self) -> bool:+ ...+ def __contains__(self, arg0: str) -> bool:+ ...+ def __delitem__(self, arg0: str) -> None:+ ...+ def __getitem__(self, arg0: str) -> typing.Any:+ ...+ def __iter__(self) -> collections.abc.Iterator[str]:+ ...+ def __len__(self) -> int:+ ...+ def __repr__(self) -> str:+ ...+ @typing.overload+ def __setitem__(self, arg0: str, arg1: str) -> None:+ ...+ @typing.overload+ def __setitem__(self, arg0: str, arg1: typing.SupportsInt | typing.SupportsIndex) -> None:+ ...+ def items(self) -> typing.Any:+ ...+ def keys(self) -> collections.abc.Iterator[str]:+ ...+ def values(self) -> typing.Any:+ ...class _ConversionExtension(ConversionExtensionBase):passclass _IDecoder:diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_auto.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_auto.pyiindex b414f1b1496..c3733e0b8a2 100644--- a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_auto.pyi+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_auto.pyi@@ -1,11 +1,12 @@# type: ignorefrom __future__ import annotations+import collections.abcimport openvino._pyopenvinoimport typing"""openvino.properties.intel_auto submodule that simulates ov::intel_auto"""-__all__: list[str] = ['SchedulePolicy', 'device_bind_buffer', 'enable_runtime_fallback', 'enable_startup_fallback', 'schedule_policy']+__all__: list[str] = ['SchedulePolicy', 'device_bind_buffer', 'devices_utilization_threshold', 'enable_runtime_fallback', 'enable_startup_fallback', 'schedule_policy']class SchedulePolicy:"""Members:@@ -61,6 +62,12 @@ def device_bind_buffer() -> str:def device_bind_buffer(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:...@typing.overload+def devices_utilization_threshold() -> str:+ ...+def devices_utilization_threshold(arg0: collections.abc.Mapping[str, typing.SupportsInt | typing.SupportsIndex]) -> tuple[str, openvino._pyopenvino.OVAny]:+ ...def enable_runtime_fallback() -> str:...@typing.overloaddiff --git a/src/bindings/python/src/openvino/utils/data_helpers/wrappers.pyi b/src/bindings/python/src/openvino/utils/data_helpers/wrappers.pyiindex 4ee56ace2ab..7ecf15bd8f6 100644--- a/src/bindings/python/src/openvino/utils/data_helpers/wrappers.pyi+++ b/src/bindings/python/src/openvino/utils/data_helpers/wrappers.pyi@@ -55,6 +55,7 @@ class OVDict(collections.abc.Mapping):"""__abstractmethods__: typing.ClassVar[frozenset] # value = frozenset()+ __slots__: typing.ClassVar[tuple] = ('_dict', '_names', '__weakref__')_abc_impl: typing.ClassVar[_abc._abc_data] # value = <_abc._abc_data object>@staticmethoddef _OVDict__getitem_impl(*args, **kwargs) -> numpy.ndarray: