Skip to content

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

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

sys-openvino-ci98b662b307d6
diff --git a/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi b/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi
index c52f3b2fcb4..b6c707272d9 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi
@@ -21,14 +21,14 @@ class AsyncInferQueue:
"""
openvino.AsyncInferQueue represents a helper that creates a pool of asynchronousInferRequests and provides synchronization functions to control flow of a simple pipeline.
"""
- def __getitem__(self, arg0: typing.SupportsInt) -> InferRequest:
+ def __getitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex) -> InferRequest:
"""
:param i: InferRequest id
:type i: int
:return: InferRequests from the pool with given id.
:rtype: openvino.InferRequest
"""
- def __init__(self, model: CompiledModel, jobs: typing.SupportsInt = 0) -> None:
+ def __init__(self, model: CompiledModel, jobs: typing.SupportsInt | typing.SupportsIndex = 0) -> None:
"""
Creates AsyncInferQueue.
@@ -140,10 +140,10 @@ class AxisSet:
openvino.AxisSet wraps ov::AxisSet
"""
@typing.overload
- def __init__(self, axes: collections.abc.Set[typing.SupportsInt]) -> None:
+ def __init__(self, axes: collections.abc.Set[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
- def __init__(self, axes: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, axes: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
def __init__(self, axes: AxisSet) -> None:
@@ -158,10 +158,10 @@ class AxisVector:
"""
openvino.AxisVector wraps ov::AxisVector
"""
- def __getitem__(self, arg0: typing.SupportsInt) -> int:
+ def __getitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex) -> int:
...
@typing.overload
- def __init__(self, axes: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, axes: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
def __init__(self, axes: AxisVector) -> None:
@@ -172,7 +172,7 @@ class AxisVector:
...
def __repr__(self) -> str:
...
- def __setitem__(self, arg0: typing.SupportsInt, arg1: typing.SupportsInt) -> None:
+ def __setitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex, arg1: typing.SupportsInt | typing.SupportsIndex) -> None:
...
class CompiledModel:
"""
@@ -270,7 +270,7 @@ class CompiledModel:
:rtype: openvino.ConstOutput
"""
@typing.overload
- def input(self, index: typing.SupportsInt) -> ConstOutput:
+ def input(self, index: typing.SupportsInt | typing.SupportsIndex) -> ConstOutput:
"""
Gets input of a compiled model identified by an index.
If the input with given index is not found, this method throws an exception.
@@ -301,7 +301,7 @@ class CompiledModel:
:rtype: openvino.ConstOutput
"""
@typing.overload
- def output(self, index: typing.SupportsInt) -> ConstOutput:
+ def output(self, index: typing.SupportsInt | typing.SupportsIndex) -> ConstOutput:
"""
Gets output of a compiled model identified by an index.
If the output with given index is not found, this method throws an exception.
@@ -503,13 +503,13 @@ class Coordinate:
"""
openvino.Coordinate wraps ov::Coordinate
"""
- def __getitem__(self, arg0: typing.SupportsInt) -> int:
+ def __getitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex) -> int:
...
@typing.overload
def __init__(self, arg0: Shape) -> None:
...
@typing.overload
- def __init__(self, arg0: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, arg0: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
def __init__(self, arg0: Coordinate) -> None:
@@ -520,16 +520,16 @@ class Coordinate:
...
def __repr__(self) -> str:
...
- def __setitem__(self, arg0: typing.SupportsInt, arg1: typing.SupportsInt) -> None:
+ def __setitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex, arg1: typing.SupportsInt | typing.SupportsIndex) -> None:
...
class CoordinateDiff:
"""
openvino.CoordinateDiff wraps ov::CoordinateDiff
"""
- def __getitem__(self, arg0: typing.SupportsInt) -> int:
+ def __getitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex) -> int:
...
@typing.overload
- def __init__(self, arg0: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, arg0: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
def __init__(self, arg0: CoordinateDiff) -> None:
@@ -540,7 +540,7 @@ class CoordinateDiff:
...
def __repr__(self) -> str:
...
- def __setitem__(self, arg0: typing.SupportsInt, arg1: typing.SupportsInt) -> None:
+ def __setitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex, arg1: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
@@ -1127,13 +1127,13 @@ class Dimension:
def __eq__(self, arg0: Dimension) -> bool:
...
@typing.overload
- def __eq__(self, arg0: typing.SupportsInt) -> bool:
+ def __eq__(self, arg0: typing.SupportsInt | typing.SupportsIndex) -> bool:
...
@typing.overload
def __init__(self) -> None:
...
@typing.overload
- def __init__(self, dimension: typing.SupportsInt) -> None:
+ def __init__(self, dimension: typing.SupportsInt | typing.SupportsIndex) -> None:
"""
Construct a static dimension.
@@ -1141,7 +1141,7 @@ class Dimension:
:type dimension: int
"""
@typing.overload
- def __init__(self, min_dimension: typing.SupportsInt, max_dimension: typing.SupportsInt) -> None:
+ def __init__(self, min_dimension: typing.SupportsInt | typing.SupportsIndex, max_dimension: typing.SupportsInt | typing.SupportsIndex) -> None:
"""
Construct a dynamic dimension with bounded range.
@@ -1446,7 +1446,7 @@ class FrontEndManager:
"""
openvino.frontend.FrontEndManager wraps ov::frontend::FrontEndManager
"""
- def __getstate__(self) -> tuple:
+ def __getstate__(self) -> tuple[int]:
...
def __init__(self) -> None:
...
@@ -1515,7 +1515,7 @@ class InferRequest:
:rtype: openvino.CompiledModel
"""
@typing.overload
- def get_input_tensor(self, index: typing.SupportsInt) -> Tensor:
+ def get_input_tensor(self, index: typing.SupportsInt | typing.SupportsIndex) -> Tensor:
"""
Gets input tensor of InferRequest.
@@ -1536,7 +1536,7 @@ class InferRequest:
:rtype: openvino.Tensor
"""
@typing.overload
- def get_output_tensor(self, index: typing.SupportsInt) -> Tensor:
+ def get_output_tensor(self, index: typing.SupportsInt | typing.SupportsIndex) -> Tensor:
"""
Gets output tensor of InferRequest.
@@ -1648,7 +1648,7 @@ class InferRequest:
:type userdata: Any
"""
@typing.overload
- def set_input_tensor(self, index: typing.SupportsInt, tensor: Tensor) -> None:
+ def set_input_tensor(self, index: typing.SupportsInt | typing.SupportsIndex, tensor: Tensor) -> None:
"""
Sets input tensor of InferRequest.
@@ -1702,7 +1702,7 @@ class InferRequest:
:type tensors: list[openvino.Tensor]
"""
@typing.overload
- def set_input_tensors(self, idx: typing.SupportsInt, tensors: TensorVector) -> None:
+ def set_input_tensors(self, idx: typing.SupportsInt | typing.SupportsIndex, tensors: TensorVector) -> None:
"""
Sets batch of tensors for single input data to infer by index.
Model input needs to have batch dimension and the number of `tensors`
@@ -1716,7 +1716,7 @@ class InferRequest:
:type tensors: openvino.TensorVector
"""
@typing.overload
- def set_input_tensors(self, idx: typing.SupportsInt, tensors: list) -> None:
+ def set_input_tensors(self, idx: typing.SupportsInt | typing.SupportsIndex, tensors: list) -> None:
"""
Sets batch of tensors for single input data to infer by index.
Model input needs to have batch dimension and the number of `tensors`
@@ -1730,7 +1730,7 @@ class InferRequest:
:type tensors: list[openvino.Tensor]
"""
@typing.overload
- def set_output_tensor(self, index: typing.SupportsInt, tensor: Tensor) -> None:
+ def set_output_tensor(self, index: typing.SupportsInt | typing.SupportsIndex, tensor: Tensor) -> None:
"""
Sets output tensor of InferRequest.
@@ -1916,7 +1916,7 @@ class InferRequest:
GIL is released while running this function.
"""
- def wait_for(self, timeout: typing.SupportsInt) -> bool:
+ def wait_for(self, timeout: typing.SupportsInt | typing.SupportsIndex) -> bool:
"""
Waits for the result to become available.
Blocks until specified timeout has elapsed or
@@ -2170,7 +2170,7 @@ class InputModel:
:return: Partial shape for this place.
:rtype: openvino.PartialShape
"""
- def get_place_by_input_index(self, input_idx: typing.SupportsInt) -> Place:
+ def get_place_by_input_index(self, input_idx: typing.SupportsInt | typing.SupportsIndex) -> Place:
"""
Returns a tensor place by an input index.
@@ -2189,7 +2189,7 @@ class InputModel:
:return: Place representing operation.
:rtype: openvino.frontend.Place
"""
- def get_place_by_operation_name_and_input_port(self, operation_name: str, input_port_index: typing.SupportsInt) -> Place:
+ def get_place_by_operation_name_and_input_port(self, operation_name: str, input_port_index: typing.SupportsInt | typing.SupportsIndex) -> Place:
"""
Returns an input port place by operation name and appropriate port index.
@@ -2200,7 +2200,7 @@ class InputModel:
:return: Place representing input port of operation.
:rtype: openvino.frontend.Place
"""
- def get_place_by_operation_name_and_output_port(self, operation_name: str, output_port_index: typing.SupportsInt) -> Place:
+ def get_place_by_operation_name_and_output_port(self, operation_name: str, output_port_index: typing.SupportsInt | typing.SupportsIndex) -> Place:
"""
Returns an output port place by operation name and appropriate port index.
@@ -2254,7 +2254,7 @@ class InputModel:
:param type: New element type.
:type type: openvino.Type
"""
- def set_name_for_dimension(self, place: Place, dim_index: typing.SupportsInt, dim_name: str) -> None:
+ def set_name_for_dimension(self, place: Place, dim_index: typing.SupportsInt | typing.SupportsIndex, dim_name: str) -> None:
"""
Set name for a particular dimension of a place (e.g. batch dimension).
@@ -2652,7 +2652,7 @@ class Model:
:return: list of sorted Nodes representing ops used in model.
:rtype: list[openvino.Node]
"""
- def get_output_element_type(self, index: typing.SupportsInt) -> Type:
+ def get_output_element_type(self, index: typing.SupportsInt | typing.SupportsIndex) -> Type:
"""
Return the element type of output i
@@ -2661,7 +2661,7 @@ class Model:
:return: Type object of output i
:rtype: openvino.Type
"""
- def get_output_op(self, index: typing.SupportsInt) -> Node:
+ def get_output_op(self, index: typing.SupportsInt | typing.SupportsIndex) -> Node:
"""
Return the op that generates output i
@@ -2670,7 +2670,7 @@ class Model:
:return: Node object that generates output i
:rtype: openvino.Node
"""
- def get_output_partial_shape(self, index: typing.SupportsInt) -> PartialShape:
+ def get_output_partial_shape(self, index: typing.SupportsInt | typing.SupportsIndex) -> PartialShape:
"""
Return the partial shape of element i
@@ -2679,7 +2679,7 @@ class Model:
:return: PartialShape object of element i
:rtype: openvino.PartialShape
"""
- def get_output_shape(self, index: typing.SupportsInt) -> Shape:
+ def get_output_shape(self, index: typing.SupportsInt | typing.SupportsIndex) -> Shape:
"""
Return the shape of element i
@@ -2878,7 +2878,7 @@ class Model:
def input(self) -> Output:
...
@typing.overload
- def input(self, index: typing.SupportsInt) -> Output:
+ def input(self, index: typing.SupportsInt | typing.SupportsIndex) -> Output:
...
@typing.overload
def input(self, tensor_name: str) -> Output:
@@ -2887,7 +2887,7 @@ class Model:
def input(self) -> ConstOutput:
...
@typing.overload
- def input(self, index: typing.SupportsInt) -> ConstOutput:
+ def input(self, index: typing.SupportsInt | typing.SupportsIndex) -> ConstOutput:
...
@typing.overload
def input(self, tensor_name: str) -> ConstOutput:
@@ -2903,7 +2903,7 @@ class Model:
def output(self) -> Output:
...
@typing.overload
- def output(self, index: typing.SupportsInt) -> Output:
+ def output(self, index: typing.SupportsInt | typing.SupportsIndex) -> Output:
...
@typing.overload
def output(self, tensor_name: str) -> Output:
@@ -2912,7 +2912,7 @@ class Model:
def output(self) -> ConstOutput:
...
@typing.overload
- def output(self, index: typing.SupportsInt) -> ConstOutput:
+ def output(self, index: typing.SupportsInt | typing.SupportsIndex) -> ConstOutput:
...
@typing.overload
def output(self, tensor_name: str) -> ConstOutput:
@@ -2955,7 +2955,7 @@ class Model:
:param variable: Variable to delete.
:type variable: op.util.Variable
"""
- def replace_parameter(self, parameter_index: typing.SupportsInt, parameter: op.Parameter) -> None:
+ def replace_parameter(self, parameter_index: typing.SupportsInt | typing.SupportsIndex, parameter: op.Parameter) -> None:
"""
Replace the `parameter_index` parameter of the model with `parameter`
@@ -3257,7 +3257,7 @@ class Node:
openvino.Node wraps ov::Node
"""
friendly_name: str
- def __add__(self, right: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsFloat | numpy.ndarray) -> Node:
+ def __add__(self, right: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsIndex | typing.SupportsFloat | typing.SupportsIndex | numpy.ndarray) -> Node:
"""
Return node which applies f(A,B) = A+B to the input nodes element-wise.
@@ -3270,7 +3270,7 @@ class Node:
...
def __getattr__(self, arg0: str) -> collections.abc.Callable:
...
- def __mul__(self, right: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsFloat | numpy.ndarray) -> Node:
+ def __mul__(self, right: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsIndex | typing.SupportsFloat | typing.SupportsIndex | numpy.ndarray) -> Node:
"""
Return node which applies f(A,B) = A*B to the input nodes element-wise.
@@ -3279,17 +3279,17 @@ class Node:
:return: The node performing element-wise multiplication.
:rtype: openvino.Node
"""
- def __radd__(self, arg0: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsFloat | numpy.ndarray) -> Node:
+ def __radd__(self, arg0: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsIndex | typing.SupportsFloat | typing.SupportsIndex | numpy.ndarray) -> Node:
...
def __repr__(self) -> str:
...
- def __rmul__(self, arg0: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsFloat | numpy.ndarray) -> Node:
+ def __rmul__(self, arg0: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsIndex | typing.SupportsFloat | typing.SupportsIndex | numpy.ndarray) -> Node:
...
- def __rsub__(self, arg0: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsFloat | numpy.ndarray) -> Node:
+ def __rsub__(self, arg0: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsIndex | typing.SupportsFloat | typing.SupportsIndex | numpy.ndarray) -> Node:
...
- def __rtruediv__(self, arg0: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsFloat | numpy.ndarray) -> Node:
+ def __rtruediv__(self, arg0: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsIndex | typing.SupportsFloat | typing.SupportsIndex | numpy.ndarray) -> Node:
...
- def __sub__(self, right: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsFloat | numpy.ndarray) -> Node:
+ def __sub__(self, right: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsIndex | typing.SupportsFloat | typing.SupportsIndex | numpy.ndarray) -> Node:
"""
Return node which applies f(A,B) = A-B to the input nodes element-wise.
@@ -3298,7 +3298,7 @@ class Node:
:return: The node performing element-wise subtraction.
:rtype: openvino.Node
"""
- def __truediv__(self, right: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsFloat | numpy.ndarray) -> Node:
+ def __truediv__(self, right: openvino._pyopenvino.Node | typing.SupportsInt | typing.SupportsIndex | typing.SupportsFloat | typing.SupportsIndex | numpy.ndarray) -> Node:
"""
Return node which applies f(A,B) = A/B to the input nodes element-wise.
@@ -3355,7 +3355,7 @@ class Node:
:return: Friendly name of the node.
:rtype: str
"""
- def get_input_element_type(self, index: typing.SupportsInt) -> Type:
+ def get_input_element_type(self, index: typing.SupportsInt | typing.SupportsIndex) -> Type:
"""
Returns the element type for input index
@@ -3364,7 +3364,7 @@ class Node:
:return: Type of the input index
:rtype: openvino.Type
"""
- def get_input_partial_shape(self, index: typing.SupportsInt) -> PartialShape:
+ def get_input_partial_shape(self, index: typing.SupportsInt | typing.SupportsIndex) -> PartialShape:
"""
Returns the partial shape for input index
@@ -3373,7 +3373,7 @@ class Node:
:return: PartialShape of the input index
:rtype: openvino.PartialShape
"""
- def get_input_shape(self, index: typing.SupportsInt) -> Shape:
+ def get_input_shape(self, index: typing.SupportsInt | typing.SupportsIndex) -> Shape:
"""
Returns the shape for input index
@@ -3389,7 +3389,7 @@ class Node:
:return: Number of inputs.
:rtype: int
"""
- def get_input_tensor(self, index: typing.SupportsInt) -> DescriptorTensor:
+ def get_input_tensor(self, index: typing.SupportsInt | typing.SupportsIndex) -> DescriptorTensor:
"""
Returns the tensor for the node's input with index i
@@ -3413,7 +3413,7 @@ class Node:
:return: Unique name of the node.
:rtype: str
"""
- def get_output_element_type(self, index: typing.SupportsInt) -> Type:
+ def get_output_element_type(self, index: typing.SupportsInt | typing.SupportsIndex) -> Type:
"""
Returns the element type for output index
@@ -3422,7 +3422,7 @@ class Node:
:return: Type of the output index
:rtype: openvino.Type
"""
- def get_output_partial_shape(self, index: typing.SupportsInt) -> PartialShape:
+ def get_output_partial_shape(self, index: typing.SupportsInt | typing.SupportsIndex) -> PartialShape:
"""
Returns the partial shape for output index
@@ -3431,7 +3431,7 @@ class Node:
:return: PartialShape of the output index
:rtype: openvino.PartialShape
"""
- def get_output_shape(self, index: typing.SupportsInt) -> Shape:
+ def get_output_shape(self, index: typing.SupportsInt | typing.SupportsIndex) -> Shape:
"""
Returns the shape for output index
@@ -3447,7 +3447,7 @@ class Node:
:return: Number of outputs.
:rtype: int
"""
- def get_output_tensor(self, index: typing.SupportsInt) -> DescriptorTensor:
+ def get_output_tensor(self, index: typing.SupportsInt | typing.SupportsIndex) -> DescriptorTensor:
"""
Returns the tensor for output index
@@ -3472,7 +3472,7 @@ class Node:
:return: String representing Type's name.
:rtype: str
"""
- def input(self, input_index: typing.SupportsInt) -> Input:
+ def input(self, input_index: typing.SupportsInt | typing.SupportsIndex) -> Input:
"""
A handle to the input_index input of this node.
@@ -3481,7 +3481,7 @@ class Node:
:return: Input of this node.
:rtype: openvino.Input
"""
- def input_value(self, index: typing.SupportsInt) -> Output:
+ def input_value(self, index: typing.SupportsInt | typing.SupportsIndex) -> Output:
"""
Returns input of the node with index i
@@ -3504,7 +3504,7 @@ class Node:
:return: list of node's inputs.
:rtype: list[openvino.Input]
"""
- def output(self, output_index: typing.SupportsInt) -> Output:
+ def output(self, output_index: typing.SupportsInt | typing.SupportsIndex) -> Output:
"""
A handle to the output_index output of this node.
@@ -3520,7 +3520,7 @@ class Node:
:return: list of node's outputs.
:rtype: list[openvino.Output]
"""
- def set_argument(self, arg0: typing.SupportsInt, arg1: Output) -> None:
+ def set_argument(self, arg0: typing.SupportsInt | typing.SupportsIndex, arg1: Output) -> None:
...
@typing.overload
def set_arguments(self, arg0: collections.abc.Sequence[Node]) -> None:
@@ -3539,14 +3539,14 @@ class Node:
:param name: Friendly name to set.
:type name: str
"""
- def set_output_size(self, size: typing.SupportsInt) -> None:
+ def set_output_size(self, size: typing.SupportsInt | typing.SupportsIndex) -> None:
"""
Sets the number of outputs
:param size: number of outputs.
:type size: int
"""
- def set_output_type(self, index: typing.SupportsInt, element_type: Type, shape: PartialShape) -> None:
+ def set_output_type(self, index: typing.SupportsInt | typing.SupportsIndex, element_type: Type, shape: PartialShape) -> None:
"""
Sets output's element type and shape.
@@ -3591,13 +3591,13 @@ class NodeContext:
def get_attribute(self, name: str, default_value: typing.Any = None, dtype: typing.Any = None) -> typing.Any:
...
@typing.overload
- def get_input(self, arg0: typing.SupportsInt) -> Output:
+ def get_input(self, arg0: typing.SupportsInt | typing.SupportsIndex) -> Output:
...
@typing.overload
def get_input(self, arg0: str) -> Output:
...
@typing.overload
- def get_input(self, arg0: str, arg1: typing.SupportsInt) -> Output:
+ def get_input(self, arg0: str, arg1: typing.SupportsInt | typing.SupportsIndex) -> Output:
...
@typing.overload
def get_input_size(self) -> int:
@@ -3607,7 +3607,7 @@ class NodeContext:
...
def get_op_type(self, arg0: str) -> str:
...
- def get_values_from_const_input(self, idx: typing.SupportsInt, default_value: typing.Any = None, dtype: typing.Any = None) -> typing.Any:
+ def get_values_from_const_input(self, idx: typing.SupportsInt | typing.SupportsIndex, default_value: typing.Any = None, dtype: typing.Any = None) -> typing.Any:
...
def has_attribute(self, arg0: str) -> bool:
...
@@ -3668,7 +3668,7 @@ class OVAny:
def __setitem__(self, arg0: typing.Any, arg1: str) -> None:
...
@typing.overload
- def __setitem__(self, arg0: typing.Any, arg1: typing.SupportsInt) -> None:
+ def __setitem__(self, arg0: typing.Any, arg1: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def aslist(self, dtype: typing.Any = None) -> typing.Any:
"""
@@ -3905,7 +3905,7 @@ class PartialShape:
"""
@staticmethod
@typing.overload
- def dynamic(rank: typing.SupportsInt) -> PartialShape:
+ def dynamic(rank: typing.SupportsInt | typing.SupportsIndex) -> PartialShape:
"""
Construct a PartialShape with the given rank and all dimensions are dynamic.
@@ -3932,7 +3932,7 @@ class PartialShape:
def __eq__(self, arg0: list) -> bool:
...
@typing.overload
- def __getitem__(self, arg0: typing.SupportsInt) -> Dimension:
+ def __getitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex) -> Dimension:
...
@typing.overload
def __getitem__(self, arg0: slice) -> PartialShape:
@@ -3959,10 +3959,10 @@ class PartialShape:
def __repr__(self) -> str:
...
@typing.overload
- def __setitem__(self, arg0: typing.SupportsInt, arg1: typing.SupportsInt) -> None:
+ def __setitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex, arg1: typing.SupportsInt | typing.SupportsIndex) -> None:
...
@typing.overload
- def __setitem__(self, arg0: typing.SupportsInt, arg1: Dimension) -> None:
+ def __setitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex, arg1: Dimension) -> None:
...
def __str__(self) -> str:
...
@@ -3976,7 +3976,7 @@ class PartialShape:
:return: True if this shape is compatible with s, else False.
:rtype: bool
"""
- def get_dimension(self, index: typing.SupportsInt) -> Dimension:
+ def get_dimension(self, index: typing.SupportsInt | typing.SupportsIndex) -> Dimension:
"""
Get the dimension at specified index of a partial shape.
@@ -4217,7 +4217,7 @@ class ProfilingInfo:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -4225,7 +4225,7 @@ class ProfilingInfo:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
@@ -4259,12 +4259,12 @@ class ProgressReporterExtension(Extension):
def __init__(self, arg0: collections.abc.Callable) -> None:
...
@typing.overload
- def __init__(self, arg0: collections.abc.Callable[[typing.SupportsFloat, typing.SupportsInt, typing.SupportsInt], None]) -> None:
+ def __init__(self, arg0: collections.abc.Callable[[typing.SupportsFloat | typing.SupportsIndex, typing.SupportsInt | typing.SupportsIndex, typing.SupportsInt | typing.SupportsIndex], None]) -> None:
...
@typing.overload
- def __init__(self, arg0: collections.abc.Callable[[typing.SupportsFloat, typing.SupportsInt, typing.SupportsInt], None]) -> None:
+ def __init__(self, arg0: collections.abc.Callable[[typing.SupportsFloat | typing.SupportsIndex, typing.SupportsInt | typing.SupportsIndex, typing.SupportsInt | typing.SupportsIndex], None]) -> None:
...
- def report_progress(self, arg0: typing.SupportsFloat, arg1: typing.SupportsInt, arg2: typing.SupportsInt) -> None:
+ def report_progress(self, arg0: typing.SupportsFloat | typing.SupportsIndex, arg1: typing.SupportsInt | typing.SupportsIndex, arg2: typing.SupportsInt | typing.SupportsIndex) -> None:
...
class RTMap:
"""
@@ -4292,7 +4292,7 @@ class RTMap:
def __setitem__(self, arg0: str, arg1: str) -> None:
...
@typing.overload
- def __setitem__(self, arg0: str, arg1: typing.SupportsInt) -> None:
+ def __setitem__(self, arg0: str, arg1: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def items(self) -> typing.Iterator:
...
@@ -4468,7 +4468,7 @@ class Shape:
def __eq__(self, arg0: list) -> bool:
...
@typing.overload
- def __getitem__(self, arg0: typing.SupportsInt) -> int:
+ def __getitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex) -> int:
...
@typing.overload
def __getitem__(self, arg0: slice) -> Shape:
@@ -4477,7 +4477,7 @@ class Shape:
def __init__(self) -> None:
...
@typing.overload
- def __init__(self, axis_lengths: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, axis_lengths: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
def __init__(self, axis_lengths: Shape) -> None:
@@ -4492,10 +4492,10 @@ class Shape:
def __repr__(self) -> str:
...
@typing.overload
- def __setitem__(self, arg0: typing.SupportsInt, arg1: typing.SupportsInt) -> None:
+ def __setitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex, arg1: typing.SupportsInt | typing.SupportsIndex) -> None:
...
@typing.overload
- def __setitem__(self, arg0: typing.SupportsInt, arg1: Dimension) -> None:
+ def __setitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex, arg1: Dimension) -> None:
...
def __str__(self) -> str:
...
@@ -4515,10 +4515,10 @@ class Strides:
@typing.overload
def __eq__(self, arg0: list) -> bool:
...
- def __getitem__(self, arg0: typing.SupportsInt) -> int:
+ def __getitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex) -> int:
...
@typing.overload
- def __init__(self, axis_strides: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, axis_strides: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
def __init__(self, axis_strides: Strides) -> None:
@@ -4529,7 +4529,7 @@ class Strides:
...
def __repr__(self) -> str:
...
- def __setitem__(self, arg0: typing.SupportsInt, arg1: typing.SupportsInt) -> None:
+ def __setitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex, arg1: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
@@ -4552,11 +4552,11 @@ class TelemetryExtension(Extension):
def __init__(self, arg0: str, arg1: collections.abc.Callable, arg2: collections.abc.Callable, arg3: collections.abc.Callable) -> None:
...
@typing.overload
- def __init__(self, arg0: str, arg1: collections.abc.Callable[[str, str, str, typing.SupportsInt], None], arg2: collections.abc.Callable[[str, str], None], arg3: collections.abc.Callable[[str, str], None]) -> None:
+ def __init__(self, arg0: str, arg1: collections.abc.Callable[[str, str, str, typing.SupportsInt | typing.SupportsIndex], None], arg2: collections.abc.Callable[[str, str], None], arg3: collections.abc.Callable[[str, str], None]) -> None:
...
def send_error(self, arg0: str) -> None:
...
- def send_event(self, arg0: str, arg1: str, arg2: typing.SupportsInt) -> None:
+ def send_event(self, arg0: str, arg1: str, arg2: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def send_stack_trace(self, arg0: str) -> None:
...
@@ -4611,7 +4611,7 @@ class Tensor:
t = ov.Tensor(arr, ov.Shape([100, 8]), ov.Type.u1)
"""
@typing.overload
- def __init__(self, array: numpy.ndarray[typing.Any, numpy.dtype[typing.Any]], shape: collections.abc.Sequence[typing.SupportsInt], type: Type = ...) -> None:
+ def __init__(self, array: numpy.ndarray[typing.Any, numpy.dtype[typing.Any]], shape: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex], type: Type = ...) -> None:
"""
Another Tensor's special constructor.
@@ -4653,13 +4653,13 @@ class Tensor:
def __init__(self, type: Type, shape: Shape) -> None:
...
@typing.overload
- def __init__(self, type: Type, shape: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, type: Type, shape: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
- def __init__(self, type: numpy.dtype[typing.Any], shape: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, type: numpy.dtype[typing.Any], shape: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
- def __init__(self, type: typing.Any, shape: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, type: typing.Any, shape: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
def __init__(self, type: numpy.dtype[typing.Any], shape: Shape) -> None:
@@ -4715,7 +4715,7 @@ class Tensor:
def __init__(self, other: Tensor, begin: Coordinate, end: Coordinate) -> None:
...
@typing.overload
- def __init__(self, other: Tensor, begin: collections.abc.Sequence[typing.SupportsInt], end: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, other: Tensor, begin: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex], end: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
def __init__(self, image: typing.Any) -> None:
@@ -4823,7 +4823,7 @@ class Tensor:
Sets Tensor's shape.
"""
@typing.overload
- def set_shape(self, arg0: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def set_shape(self, arg0: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
"""
Sets Tensor's shape.
"""
@@ -4880,7 +4880,7 @@ class Tensor:
Tensor's shape get/set.
"""
@shape.setter
- def shape(self, arg1: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def shape(self, arg1: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@property
def size(self) -> int:
@@ -4917,7 +4917,7 @@ class TensorVector:
Check whether the list is nonempty
"""
@typing.overload
- def __delitem__(self, arg0: typing.SupportsInt) -> None:
+ def __delitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex) -> None:
"""
Delete the list elements at index ``i``
"""
@@ -4932,7 +4932,7 @@ class TensorVector:
Retrieve list elements using a slice object
"""
@typing.overload
- def __getitem__(self, arg0: typing.SupportsInt) -> Tensor:
+ def __getitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex) -> Tensor:
...
@typing.overload
def __init__(self) -> None:
@@ -4950,7 +4950,7 @@ class TensorVector:
def __len__(self) -> int:
...
@typing.overload
- def __setitem__(self, arg0: typing.SupportsInt, arg1: Tensor) -> None:
+ def __setitem__(self, arg0: typing.SupportsInt | typing.SupportsIndex, arg1: Tensor) -> None:
...
@typing.overload
def __setitem__(self, arg0: slice, arg1: TensorVector) -> None:
@@ -4975,7 +4975,7 @@ class TensorVector:
"""
Extend the list by appending all the items in the given list
"""
- def insert(self, i: typing.SupportsInt, x: Tensor) -> None:
+ def insert(self, i: typing.SupportsInt | typing.SupportsIndex, x: Tensor) -> None:
"""
Insert an item at a given position.
"""
@@ -4985,7 +4985,7 @@ class TensorVector:
Remove and return the last item
"""
@typing.overload
- def pop(self, i: typing.SupportsInt) -> Tensor:
+ def pop(self, i: typing.SupportsInt | typing.SupportsIndex) -> Tensor:
"""
Remove and return the item at index ``i``
"""
@@ -5109,7 +5109,7 @@ class Type:
def type_name(self) -> str:
...
class VAContext(RemoteContext):
- def __init__(self, core: Core, display: typing_extensions.CapsuleType, target_tile_id: typing.SupportsInt = -1) -> None:
+ def __init__(self, core: Core, display: typing_extensions.CapsuleType, target_tile_id: typing.SupportsInt | typing.SupportsIndex = -1) -> None:
"""
Constructs remote context object from valid VA display handle.
@@ -5123,7 +5123,7 @@ class VAContext(RemoteContext):
:return: A context instance.
:rtype: openvino.VAContext
"""
- def create_tensor(self, type: Type, shape: Shape, surface: typing.SupportsInt, plane: typing.SupportsInt = 0) -> VASurfaceTensorWrapper:
+ def create_tensor(self, type: Type, shape: Shape, surface: typing.SupportsInt | typing.SupportsIndex, plane: typing.SupportsInt | typing.SupportsIndex = 0) -> VASurfaceTensorWrapper:
"""
Create remote tensor from VA surface handle.
@@ -5140,7 +5140,7 @@ class VAContext(RemoteContext):
:return: A remote tensor instance wrapping `VASurfaceID`.
:rtype: openvino.VASurfaceTensor
"""
- def create_tensor_nv12(self, height: typing.SupportsInt, width: typing.SupportsInt, nv12_surface: typing.SupportsInt) -> tuple:
+ def create_tensor_nv12(self, height: typing.SupportsInt | typing.SupportsIndex, width: typing.SupportsInt | typing.SupportsIndex, nv12_surface: typing.SupportsInt | typing.SupportsIndex) -> tuple[VASurfaceTensorWrapper, VASurfaceTensorWrapper]:
"""
This function is used to obtain a NV12 tensor from NV12 VA decoder output.
The result contains two remote tensors for Y and UV planes of the surface.
@@ -5329,7 +5329,7 @@ def serialize(model: typing.Any, xml_path: typing.Any, bin_path: typing.Any = ''
def set_batch(model: typing.Any, dimension: Dimension) -> None:
...
@typing.overload
-def set_batch(model: typing.Any, batch_size: typing.SupportsInt = -1) -> None:
+def set_batch(model: typing.Any, batch_size: typing.SupportsInt | typing.SupportsIndex = -1) -> None:
...
def shutdown() -> None:
"""
diff --git a/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi b/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi
index 844b31982bd..8180bb22d31 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi
@@ -26,34 +26,34 @@ class Constant(openvino._pyopenvino.Node):
def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[...]) -> None:
...
@typing.overload
- def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsFloat]) -> None:
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsFloat | typing.SupportsIndex]) -> None:
...
@typing.overload
- def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsFloat]) -> None:
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsFloat | typing.SupportsIndex]) -> None:
...
@typing.overload
- def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
- def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
- def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
- def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
- def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
- def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
- def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
@typing.overload
- def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt]) -> None:
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
def __repr__(self) -> str:
...
@@ -171,9 +171,9 @@ class Result(openvino._pyopenvino.Node):
...
def get_layout(self) -> openvino._pyopenvino.Layout:
...
- def get_output_element_type(self, index: typing.SupportsInt) -> openvino._pyopenvino.Type:
+ def get_output_element_type(self, index: typing.SupportsInt | typing.SupportsIndex) -> openvino._pyopenvino.Type:
...
- def get_output_partial_shape(self, index: typing.SupportsInt) -> openvino._pyopenvino.PartialShape:
+ def get_output_partial_shape(self, index: typing.SupportsInt | typing.SupportsIndex) -> openvino._pyopenvino.PartialShape:
...
def set_layout(self, layout: openvino._pyopenvino.Layout) -> None:
...
@@ -241,7 +241,7 @@ class if_op(openvino._pyopenvino.Node):
:return: else_body as Model object.
:rtype: openvino.Model
"""
- def get_function(self, index: typing.SupportsInt) -> typing.Any:
+ def get_function(self, index: typing.SupportsInt | typing.SupportsIndex) -> typing.Any:
"""
Gets internal sub-graph by index in MultiSubGraphOp.
@@ -251,7 +251,7 @@ class if_op(openvino._pyopenvino.Node):
:return: Model with sub-graph.
:rtype: openvino.Model
"""
- def get_input_descriptions(self, index: typing.SupportsInt) -> list:
+ def get_input_descriptions(self, index: typing.SupportsInt | typing.SupportsIndex) -> list:
"""
Gets list with connections between operation inputs and internal sub-graph parameters.
@@ -263,7 +263,7 @@ class if_op(openvino._pyopenvino.Node):
openvino.op.util.InvariantInputDescription,
openvino.op.util.SliceInputDescription]]
"""
- def get_output_descriptions(self, index: typing.SupportsInt) -> list:
+ def get_output_descriptions(self, index: typing.SupportsInt | typing.SupportsIndex) -> list:
"""
Gets list with connections between operation outputs and internal sub-graph parameters.
@@ -290,7 +290,7 @@ class if_op(openvino._pyopenvino.Node):
:rtype: None
"""
- def set_function(self, index: typing.SupportsInt, func: typing.Any) -> None:
+ def set_function(self, index: typing.SupportsInt | typing.SupportsIndex, func: typing.Any) -> None:
"""
Adds sub-graph to MultiSubGraphOp.
@@ -317,7 +317,7 @@ class if_op(openvino._pyopenvino.Node):
:rtype: None
"""
- def set_input_descriptions(self, index: typing.SupportsInt, inputs: list) -> None:
+ def set_input_descriptions(self, index: typing.SupportsInt | typing.SupportsIndex, inputs: list) -> None:
"""
Sets list with connections between operation inputs and internal sub-graph parameters.
@@ -344,7 +344,7 @@ class if_op(openvino._pyopenvino.Node):
:return: output from operation.
:rtype: openvino.Output
"""
- def set_output_descriptions(self, index: typing.SupportsInt, outputs: list) -> None:
+ def set_output_descriptions(self, index: typing.SupportsInt | typing.SupportsIndex, outputs: list) -> None:
"""
Sets list with connections between operation outputs and internal sub-graph parameters.
@@ -381,13 +381,13 @@ class loop(openvino._pyopenvino.Node):
...
def __repr__(self) -> str:
...
- def get_concatenated_slices(self, value: openvino._pyopenvino.Output, start: typing.SupportsInt, stride: typing.SupportsInt, part_size: typing.SupportsInt, end: typing.SupportsInt, axis: typing.SupportsInt) -> openvino._pyopenvino.Output:
+ def get_concatenated_slices(self, value: openvino._pyopenvino.Output, start: typing.SupportsInt | typing.SupportsIndex, stride: typing.SupportsInt | typing.SupportsIndex, part_size: typing.SupportsInt | typing.SupportsIndex, end: typing.SupportsInt | typing.SupportsIndex, axis: typing.SupportsInt | typing.SupportsIndex) -> openvino._pyopenvino.Output:
...
def get_function(self) -> typing.Any:
...
def get_input_descriptions(self) -> list:
...
- def get_iter_value(self, body_value: openvino._pyopenvino.Output, iteration: typing.SupportsInt = -1) -> openvino._pyopenvino.Output:
+ def get_iter_value(self, body_value: openvino._pyopenvino.Output, iteration: typing.SupportsInt | typing.SupportsIndex = -1) -> openvino._pyopenvino.Output:
...
def get_num_iterations(self) -> int:
...
@@ -405,7 +405,7 @@ class loop(openvino._pyopenvino.Node):
...
def set_output_descriptions(self, outputs: list) -> None:
...
- def set_sliced_input(self, parameter: Parameter, value: openvino._pyopenvino.Output, start: typing.SupportsInt, stride: typing.SupportsInt, part_size: typing.SupportsInt, end: typing.SupportsInt, axis: typing.SupportsInt) -> None:
+ def set_sliced_input(self, parameter: Parameter, value: openvino._pyopenvino.Output, start: typing.SupportsInt | typing.SupportsIndex, stride: typing.SupportsInt | typing.SupportsIndex, part_size: typing.SupportsInt | typing.SupportsIndex, end: typing.SupportsInt | typing.SupportsIndex, axis: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def set_special_body_ports(self, special_body_ports: list) -> None:
...
@@ -441,13 +441,13 @@ class tensor_iterator(openvino._pyopenvino.Node):
...
def get_body(self) -> typing.Any:
...
- def get_concatenated_slices(self, value: openvino._pyopenvino.Output, start: typing.SupportsInt, stride: typing.SupportsInt, part_size: typing.SupportsInt, end: typing.SupportsInt, axis: typing.SupportsInt) -> openvino._pyopenvino.Output:
+ def get_concatenated_slices(self, value: openvino._pyopenvino.Output, start: typing.SupportsInt | typing.SupportsIndex, stride: typing.SupportsInt | typing.SupportsIndex, part_size: typing.SupportsInt | typing.SupportsIndex, end: typing.SupportsInt | typing.SupportsIndex, axis: typing.SupportsInt | typing.SupportsIndex) -> openvino._pyopenvino.Output:
...
def get_function(self) -> typing.Any:
...
def get_input_descriptions(self) -> list:
...
- def get_iter_value(self, body_value: openvino._pyopenvino.Output, iteration: typing.SupportsInt = -1) -> openvino._pyopenvino.Output:
+ def get_iter_value(self, body_value: openvino._pyopenvino.Output, iteration: typing.SupportsInt | typing.SupportsIndex = -1) -> openvino._pyopenvino.Output:
...
def get_num_iterations(self) -> int:
...
@@ -465,5 +465,5 @@ class tensor_iterator(openvino._pyopenvino.Node):
...
def set_output_descriptions(self, outputs: list) -> None:
...
- def set_sliced_input(self, parameter: Parameter, value: openvino._pyopenvino.Output, start: typing.SupportsInt, stride: typing.SupportsInt, part_size: typing.SupportsInt, end: typing.SupportsInt, axis: typing.SupportsInt) -> None:
+ def set_sliced_input(self, parameter: Parameter, value: openvino._pyopenvino.Output, start: typing.SupportsInt | typing.SupportsIndex, stride: typing.SupportsInt | typing.SupportsIndex, part_size: typing.SupportsInt | typing.SupportsIndex, end: typing.SupportsInt | typing.SupportsIndex, axis: typing.SupportsInt | typing.SupportsIndex) -> None:
...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/op/util.pyi b/src/bindings/python/src/openvino/_pyopenvino/op/util.pyi
index 01de2eb8feb..99614e38141 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/op/util.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/op/util.pyi
@@ -31,7 +31,7 @@ class BodyOutputDescription(OutputDescription):
def __init__(self) -> None:
...
@typing.overload
- def __init__(self, body_value_index: typing.SupportsInt, output_index: typing.SupportsInt, iteration: typing.SupportsInt = -1) -> None:
+ def __init__(self, body_value_index: typing.SupportsInt | typing.SupportsIndex, output_index: typing.SupportsInt | typing.SupportsIndex, iteration: typing.SupportsInt | typing.SupportsIndex = -1) -> None:
...
def __repr__(self) -> str:
...
@@ -56,7 +56,7 @@ class ConcatOutputDescription(OutputDescription):
def __init__(self) -> None:
...
@typing.overload
- def __init__(self, body_value_index: typing.SupportsInt, output_index: typing.SupportsInt, start: typing.SupportsInt, stride: typing.SupportsInt, part_size: typing.SupportsInt, end: typing.SupportsInt, axis: typing.SupportsInt) -> None:
+ def __init__(self, body_value_index: typing.SupportsInt | typing.SupportsIndex, output_index: typing.SupportsInt | typing.SupportsIndex, start: typing.SupportsInt | typing.SupportsIndex, stride: typing.SupportsInt | typing.SupportsIndex, part_size: typing.SupportsInt | typing.SupportsIndex, end: typing.SupportsInt | typing.SupportsIndex, axis: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __repr__(self) -> str:
...
@@ -95,13 +95,13 @@ class IndexReduction:
...
def set_index_element_type(self, arg0: openvino._pyopenvino.Type) -> None:
...
- def set_reduction_axis(self, arg0: typing.SupportsInt) -> None:
+ def set_reduction_axis(self, arg0: typing.SupportsInt | typing.SupportsIndex) -> None:
...
@property
def reduction_axis(self) -> int:
...
@reduction_axis.setter
- def reduction_axis(self, arg1: typing.SupportsInt) -> None:
+ def reduction_axis(self, arg1: typing.SupportsInt | typing.SupportsIndex) -> None:
...
class InputDescription:
def __init__(self) -> None:
@@ -118,7 +118,7 @@ class InvariantInputDescription(InputDescription):
def __init__(self) -> None:
...
@typing.overload
- def __init__(self, input_index: typing.SupportsInt, body_parameter_index: typing.SupportsInt) -> None:
+ def __init__(self, input_index: typing.SupportsInt | typing.SupportsIndex, body_parameter_index: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __repr__(self) -> str:
...
@@ -140,7 +140,7 @@ class MergedInputDescription(InputDescription):
def __init__(self) -> None:
...
@typing.overload
- def __init__(self, input_index: typing.SupportsInt, body_parameter_index: typing.SupportsInt, body_value_index: typing.SupportsInt) -> None:
+ def __init__(self, input_index: typing.SupportsInt | typing.SupportsIndex, body_parameter_index: typing.SupportsInt | typing.SupportsIndex, body_value_index: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __repr__(self) -> str:
...
@@ -172,7 +172,7 @@ class SliceInputDescription(InputDescription):
def __init__(self) -> None:
...
@typing.overload
- def __init__(self, input_index: typing.SupportsInt, body_parameter_index: typing.SupportsInt, start: typing.SupportsInt, stride: typing.SupportsInt, part_size: typing.SupportsInt, end: typing.SupportsInt, axis: typing.SupportsInt) -> None:
+ def __init__(self, input_index: typing.SupportsInt | typing.SupportsIndex, body_parameter_index: typing.SupportsInt | typing.SupportsIndex, start: typing.SupportsInt | typing.SupportsIndex, stride: typing.SupportsInt | typing.SupportsIndex, part_size: typing.SupportsInt | typing.SupportsIndex, end: typing.SupportsInt | typing.SupportsIndex, axis: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __repr__(self) -> str:
...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/passes.pyi b/src/bindings/python/src/openvino/_pyopenvino/passes.pyi
index 12710f5a65f..3eeac9d6a67 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/passes.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/passes.pyi
@@ -580,7 +580,7 @@ class PatternSymbolValue:
:type value: openvino.Symbol
"""
@typing.overload
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
"""
Create PatternSymbolValue with the given value.
@@ -588,7 +588,7 @@ class PatternSymbolValue:
:type value: int
"""
@typing.overload
- def __init__(self, value: typing.SupportsFloat) -> None:
+ def __init__(self, value: typing.SupportsFloat | typing.SupportsIndex) -> None:
"""
Create PatternSymbolValue with the given value.
@@ -691,7 +691,7 @@ class Version:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -703,7 +703,7 @@ class Version:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
@@ -1112,11 +1112,11 @@ class WrapType(openvino._pyopenvino.Node):
...
def attrs_match(arg0: typing.Any) -> Predicate:
...
-def consumers_count(arg0: typing.SupportsInt) -> Predicate:
+def consumers_count(arg0: typing.SupportsInt | typing.SupportsIndex) -> Predicate:
...
-def has_static_dim(arg0: typing.SupportsInt) -> Predicate:
+def has_static_dim(arg0: typing.SupportsInt | typing.SupportsIndex) -> Predicate:
...
-def has_static_dims(arg0: collections.abc.Sequence[typing.SupportsInt]) -> Predicate:
+def has_static_dims(arg0: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> Predicate:
...
def has_static_rank() -> Predicate:
...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/preprocess.pyi b/src/bindings/python/src/openvino/_pyopenvino/preprocess.pyi
index 1e81b497312..b7db9e49d1a 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/preprocess.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/preprocess.pyi
@@ -51,7 +51,7 @@ class ColorFormat:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -59,7 +59,7 @@ class ColorFormat:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
@@ -142,11 +142,11 @@ class InputTensorInfo:
def set_shape(self, shape: openvino._pyopenvino.PartialShape) -> InputTensorInfo:
...
@typing.overload
- def set_shape(self, shape: collections.abc.Sequence[typing.SupportsInt]) -> InputTensorInfo:
+ def set_shape(self, shape: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> InputTensorInfo:
...
def set_spatial_dynamic_shape(self) -> InputTensorInfo:
...
- def set_spatial_static_shape(self, height: typing.SupportsInt, width: typing.SupportsInt) -> InputTensorInfo:
+ def set_spatial_static_shape(self, height: typing.SupportsInt | typing.SupportsIndex, width: typing.SupportsInt | typing.SupportsIndex) -> InputTensorInfo:
...
class OutputInfo:
"""
@@ -212,7 +212,7 @@ class PaddingMode:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -220,7 +220,7 @@ class PaddingMode:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
@@ -248,7 +248,7 @@ class PostProcessSteps:
def convert_layout(self, dst_layout: openvino._pyopenvino.Layout) -> PostProcessSteps:
...
@typing.overload
- def convert_layout(self, dims: collections.abc.Sequence[typing.SupportsInt]) -> PostProcessSteps:
+ def convert_layout(self, dims: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> PostProcessSteps:
...
def custom(self, operation: collections.abc.Callable) -> PostProcessSteps:
"""
@@ -280,7 +280,7 @@ class PrePostProcessor:
def input(self, tensor_name: str) -> InputInfo:
...
@typing.overload
- def input(self, input_index: typing.SupportsInt) -> InputInfo:
+ def input(self, input_index: typing.SupportsInt | typing.SupportsIndex) -> InputInfo:
...
@typing.overload
def output(self) -> OutputInfo:
@@ -289,7 +289,7 @@ class PrePostProcessor:
def output(self, tensor_name: str) -> OutputInfo:
...
@typing.overload
- def output(self, output_index: typing.SupportsInt) -> OutputInfo:
+ def output(self, output_index: typing.SupportsInt | typing.SupportsIndex) -> OutputInfo:
...
class PreProcessSteps:
"""
@@ -311,9 +311,9 @@ class PreProcessSteps:
def convert_layout(self, dst_layout: openvino._pyopenvino.Layout) -> PreProcessSteps:
...
@typing.overload
- def convert_layout(self, dims: collections.abc.Sequence[typing.SupportsInt]) -> PreProcessSteps:
+ def convert_layout(self, dims: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> PreProcessSteps:
...
- def crop(self, begin: collections.abc.Sequence[typing.SupportsInt], end: collections.abc.Sequence[typing.SupportsInt]) -> PreProcessSteps:
+ def crop(self, begin: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex], end: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> PreProcessSteps:
...
def custom(self, operation: collections.abc.Callable) -> PreProcessSteps:
"""
@@ -325,7 +325,7 @@ class PreProcessSteps:
:rtype: openvino.preprocess.PreProcessSteps
"""
@typing.overload
- def mean(self, value: typing.SupportsFloat) -> PreProcessSteps:
+ def mean(self, value: typing.SupportsFloat | typing.SupportsIndex) -> PreProcessSteps:
"""
Subtracts single float value from each element in input tensor.
Input tensor must have ov.Type.f32 data type.
@@ -336,7 +336,7 @@ class PreProcessSteps:
:rtype: openvino.preprocess.PreProcessSteps
"""
@typing.overload
- def mean(self, values: collections.abc.Sequence[typing.SupportsFloat]) -> PreProcessSteps:
+ def mean(self, values: collections.abc.Sequence[typing.SupportsFloat | typing.SupportsIndex]) -> PreProcessSteps:
"""
Subtracts a given single float value from each element in a given channel from input tensor.
Input tensor must have ov.Type.f32 data type.
@@ -347,7 +347,7 @@ class PreProcessSteps:
:rtype: openvino.preprocess.PreProcessSteps
"""
@typing.overload
- def pad(self, pads_begin: collections.abc.Sequence[typing.SupportsInt], pads_end: collections.abc.Sequence[typing.SupportsInt], value: typing.SupportsFloat, mode: PaddingMode) -> PreProcessSteps:
+ def pad(self, pads_begin: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex], pads_end: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex], value: typing.SupportsFloat | typing.SupportsIndex, mode: PaddingMode) -> PreProcessSteps:
"""
Adds padding preprocessing operation.
@@ -363,7 +363,7 @@ class PreProcessSteps:
:rtype: openvino.preprocess.PreProcessSteps
"""
@typing.overload
- def pad(self, pads_begin: collections.abc.Sequence[typing.SupportsInt], pads_end: collections.abc.Sequence[typing.SupportsInt], value: collections.abc.Sequence[typing.SupportsFloat], mode: PaddingMode) -> PreProcessSteps:
+ def pad(self, pads_begin: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex], pads_end: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex], value: collections.abc.Sequence[typing.SupportsFloat | typing.SupportsIndex], mode: PaddingMode) -> PreProcessSteps:
"""
Adds padding preprocessing operation.
@@ -379,7 +379,7 @@ class PreProcessSteps:
:rtype: openvino.PreProcessSteps
"""
@typing.overload
- def resize(self, alg: ResizeAlgorithm, dst_height: typing.SupportsInt, dst_width: typing.SupportsInt) -> PreProcessSteps:
+ def resize(self, alg: ResizeAlgorithm, dst_height: typing.SupportsInt | typing.SupportsIndex, dst_width: typing.SupportsInt | typing.SupportsIndex) -> PreProcessSteps:
...
@typing.overload
def resize(self, alg: ResizeAlgorithm) -> PreProcessSteps:
@@ -387,7 +387,7 @@ class PreProcessSteps:
def reverse_channels(self) -> PreProcessSteps:
...
@typing.overload
- def scale(self, value: typing.SupportsFloat) -> PreProcessSteps:
+ def scale(self, value: typing.SupportsFloat | typing.SupportsIndex) -> PreProcessSteps:
"""
Divides each element in input tensor by specified constant float value.
Input tensor must have ov.Type.f32 data type.
@@ -398,7 +398,7 @@ class PreProcessSteps:
:rtype: openvino.preprocess.PreProcessSteps
"""
@typing.overload
- def scale(self, values: collections.abc.Sequence[typing.SupportsFloat]) -> PreProcessSteps:
+ def scale(self, values: collections.abc.Sequence[typing.SupportsFloat | typing.SupportsIndex]) -> PreProcessSteps:
"""
Divides each element in a given channel from input tensor by a given single float value.
Input tensor must have ov.Type.f32 data type.
@@ -436,7 +436,7 @@ class ResizeAlgorithm:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -444,7 +444,7 @@ class ResizeAlgorithm:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/__init__.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/__init__.pyi
index 1d0324ce5a2..6ca25ca02a8 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/__init__.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/__init__.pyi
@@ -37,7 +37,7 @@ class CacheMode:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -49,7 +49,7 @@ class CacheMode:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
@@ -82,7 +82,7 @@ class WorkloadType:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -94,7 +94,7 @@ class WorkloadType:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
@@ -108,7 +108,7 @@ class WorkloadType:
def auto_batch_timeout() -> str:
...
@typing.overload
-def auto_batch_timeout(arg0: typing.SupportsInt) -> tuple[str, openvino._pyopenvino.OVAny]:
+def auto_batch_timeout(arg0: typing.SupportsInt | typing.SupportsIndex) -> tuple[str, openvino._pyopenvino.OVAny]:
...
def available_devices() -> str:
...
@@ -130,7 +130,7 @@ def cache_mode(arg0: CacheMode) -> tuple[str, openvino._pyopenvino.OVAny]:
def compilation_num_threads() -> str:
...
@typing.overload
-def compilation_num_threads(arg0: typing.SupportsInt) -> tuple[str, openvino._pyopenvino.OVAny]:
+def compilation_num_threads(arg0: typing.SupportsInt | typing.SupportsIndex) -> tuple[str, openvino._pyopenvino.OVAny]:
...
@typing.overload
def enable_mmap() -> str:
@@ -162,13 +162,13 @@ def force_tbb_terminate(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
def inference_num_threads() -> str:
...
@typing.overload
-def inference_num_threads(arg0: typing.SupportsInt) -> tuple[str, openvino._pyopenvino.OVAny]:
+def inference_num_threads(arg0: typing.SupportsInt | typing.SupportsIndex) -> tuple[str, openvino._pyopenvino.OVAny]:
...
@typing.overload
def key_cache_group_size() -> str:
...
@typing.overload
-def key_cache_group_size(arg0: typing.SupportsInt) -> tuple[str, openvino._pyopenvino.OVAny]:
+def key_cache_group_size(arg0: typing.SupportsInt | typing.SupportsIndex) -> tuple[str, openvino._pyopenvino.OVAny]:
...
@typing.overload
def key_cache_precision() -> str:
@@ -202,7 +202,7 @@ def supported_properties() -> str:
def value_cache_group_size() -> str:
...
@typing.overload
-def value_cache_group_size(arg0: typing.SupportsInt) -> tuple[str, openvino._pyopenvino.OVAny]:
+def value_cache_group_size(arg0: typing.SupportsInt | typing.SupportsIndex) -> tuple[str, openvino._pyopenvino.OVAny]:
...
@typing.overload
def value_cache_precision() -> str:
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/device.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/device.pyi
index b48b351d00b..d418f9d185d 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/device.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/device.pyi
@@ -19,7 +19,7 @@ class Capability:
INT8: typing.ClassVar[str] = 'INT8'
WINOGRAD: typing.ClassVar[str] = 'WINOGRAD'
class PCIInfo:
- def __init__(self, arg0: typing.SupportsInt, arg1: typing.SupportsInt, arg2: typing.SupportsInt, arg3: typing.SupportsInt) -> None:
+ def __init__(self, arg0: typing.SupportsInt | typing.SupportsIndex, arg1: typing.SupportsInt | typing.SupportsIndex, arg2: typing.SupportsInt | typing.SupportsIndex, arg3: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __repr__(self) -> typing.Any:
...
@@ -60,7 +60,7 @@ class Type:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -72,7 +72,7 @@ class Type:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/hint.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/hint.pyi
index b14c106dadb..9bb382b0935 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/hint.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/hint.pyi
@@ -30,7 +30,7 @@ class ExecutionMode:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -42,7 +42,7 @@ class ExecutionMode:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
@@ -75,7 +75,7 @@ class ModelDistributionPolicy:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -87,7 +87,7 @@ class ModelDistributionPolicy:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
@@ -123,7 +123,7 @@ class PerformanceMode:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -135,7 +135,7 @@ class PerformanceMode:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
@@ -174,7 +174,7 @@ class Priority:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -186,7 +186,7 @@ class Priority:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
@@ -222,7 +222,7 @@ class SchedulingCoreType:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -234,7 +234,7 @@ class SchedulingCoreType:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
@@ -248,7 +248,7 @@ class SchedulingCoreType:
def activations_scale_factor() -> str:
...
@typing.overload
-def activations_scale_factor(arg0: typing.SupportsFloat) -> tuple[str, openvino._pyopenvino.OVAny]:
+def activations_scale_factor(arg0: typing.SupportsFloat | typing.SupportsIndex) -> tuple[str, openvino._pyopenvino.OVAny]:
...
@typing.overload
def allow_auto_batching() -> str:
@@ -266,7 +266,7 @@ def compiled_blob(arg0: openvino._pyopenvino.Tensor) -> tuple[str, openvino._pyo
def dynamic_quantization_group_size() -> str:
...
@typing.overload
-def dynamic_quantization_group_size(arg0: typing.SupportsInt) -> tuple[str, openvino._pyopenvino.OVAny]:
+def dynamic_quantization_group_size(arg0: typing.SupportsInt | typing.SupportsIndex) -> tuple[str, openvino._pyopenvino.OVAny]:
...
@typing.overload
def enable_cpu_pinning() -> str:
@@ -326,7 +326,7 @@ def model_priority(arg0: Priority) -> tuple[str, openvino._pyopenvino.OVAny]:
def num_requests() -> str:
...
@typing.overload
-def num_requests(arg0: typing.SupportsInt) -> tuple[str, openvino._pyopenvino.OVAny]:
+def num_requests(arg0: typing.SupportsInt | typing.SupportsIndex) -> tuple[str, openvino._pyopenvino.OVAny]:
...
@typing.overload
def performance_mode() -> str:
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_auto.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_auto.pyi
index 54dbe58de53..b414f1b1496 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_auto.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_auto.pyi
@@ -32,7 +32,7 @@ class SchedulePolicy:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -44,7 +44,7 @@ class SchedulePolicy:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_cpu.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_cpu.pyi
index a8b3eaf3dde..faf3be8b42c 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_cpu.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_cpu.pyi
@@ -29,7 +29,7 @@ class TbbPartitioner:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -41,7 +41,7 @@ class TbbPartitioner:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
@@ -61,7 +61,7 @@ def denormals_optimization(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]
def sparse_weights_decompression_rate() -> str:
...
@typing.overload
-def sparse_weights_decompression_rate(arg0: typing.SupportsFloat) -> tuple[str, openvino._pyopenvino.OVAny]:
+def sparse_weights_decompression_rate(arg0: typing.SupportsFloat | typing.SupportsIndex) -> tuple[str, openvino._pyopenvino.OVAny]:
...
@typing.overload
def tbb_partitioner() -> str:
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_gpu/hint.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_gpu/hint.pyi
index 61f6d97c3e5..aec43bfa98e 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_gpu/hint.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_gpu/hint.pyi
@@ -19,7 +19,7 @@ class ThrottleLevel:
def available_device_mem() -> str:
...
@typing.overload
-def available_device_mem(arg0: typing.SupportsInt) -> tuple[str, openvino._pyopenvino.OVAny]:
+def available_device_mem(arg0: typing.SupportsInt | typing.SupportsIndex) -> tuple[str, openvino._pyopenvino.OVAny]:
...
@typing.overload
def enable_large_allocations() -> str:
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_npu.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_npu.pyi
index 5be077833b4..da11c4f7af6 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_npu.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_npu.pyi
@@ -32,7 +32,7 @@ class CompilerType:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -44,7 +44,7 @@ class CompilerType:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
@@ -108,7 +108,7 @@ def enable_strides_for(arg0: str) -> tuple[str, openvino._pyopenvino.OVAny]:
def max_tiles() -> str:
...
@typing.overload
-def max_tiles(arg0: typing.SupportsInt) -> tuple[str, openvino._pyopenvino.OVAny]:
+def max_tiles(arg0: typing.SupportsInt | typing.SupportsIndex) -> tuple[str, openvino._pyopenvino.OVAny]:
...
@typing.overload
def platform() -> str:
@@ -138,7 +138,7 @@ def run_inferences_sequentially(arg0: bool) -> tuple[str, openvino._pyopenvino.O
def tiles() -> str:
...
@typing.overload
-def tiles(arg0: typing.SupportsInt) -> tuple[str, openvino._pyopenvino.OVAny]:
+def tiles(arg0: typing.SupportsInt | typing.SupportsIndex) -> tuple[str, openvino._pyopenvino.OVAny]:
...
@typing.overload
def turbo() -> str:
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/log.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/log.pyi
index cf704c03d8f..d3a5c77fc58 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/log.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/log.pyi
@@ -41,7 +41,7 @@ class Level:
...
def __index__(self) -> int:
...
- def __init__(self, value: typing.SupportsInt) -> None:
+ def __init__(self, value: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __int__(self) -> int:
...
@@ -53,7 +53,7 @@ class Level:
...
def __repr__(self) -> str:
...
- def __setstate__(self, state: typing.SupportsInt) -> None:
+ def __setstate__(self, state: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def __str__(self) -> str:
...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/streams.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/streams.pyi
index bafc23eb056..46015b284bf 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/streams.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/streams.pyi
@@ -13,7 +13,7 @@ class Num:
def __init__(self) -> None:
...
@typing.overload
- def __init__(self, arg0: typing.SupportsInt) -> None:
+ def __init__(self, arg0: typing.SupportsInt | typing.SupportsIndex) -> None:
...
def to_integer(self) -> int:
...
@@ -24,5 +24,5 @@ def num() -> str:
def num(arg0: Num) -> tuple[str, openvino._pyopenvino.OVAny]:
...
@typing.overload
-def num(arg0: typing.SupportsInt) -> tuple[str, openvino._pyopenvino.OVAny]:
+def num(arg0: typing.SupportsInt | typing.SupportsIndex) -> tuple[str, openvino._pyopenvino.OVAny]:
...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/util.pyi b/src/bindings/python/src/openvino/_pyopenvino/util.pyi
index 372ba90d214..52fba124531 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/util.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/util.pyi
@@ -8,7 +8,7 @@ import typing
openvino.utils
"""
__all__: list[str] = ['deprecation_warning', 'numpy_to_c', 'replace_node', 'replace_output_update_name']
-def deprecation_warning(function_name: str, version: str = '', message: str = '', stacklevel: typing.SupportsInt = 2) -> None:
+def deprecation_warning(function_name: str, version: str = '', message: str = '', stacklevel: typing.SupportsInt | typing.SupportsIndex = 2) -> None:
"""
Prints deprecation warning "{function_name} is deprecated and will be removed in version {version}. {message}".
@@ -26,7 +26,7 @@ def replace_node(target: openvino._pyopenvino.Node, replacement: openvino._pyope
def replace_node(target: openvino._pyopenvino.Node, replacement: collections.abc.Sequence[openvino._pyopenvino.Output]) -> None:
...
@typing.overload
-def replace_node(target: openvino._pyopenvino.Node, replacement: openvino._pyopenvino.Node, outputs_order: collections.abc.Sequence[typing.SupportsInt]) -> None:
+def replace_node(target: openvino._pyopenvino.Node, replacement: openvino._pyopenvino.Node, outputs_order: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> None:
...
def replace_output_update_name(output: openvino._pyopenvino.Output, target_output: openvino._pyopenvino.Output) -> bool:
...