Skip to content

Commit cc95596

Browse files
committed
fix tests
1 parent 1944114 commit cc95596

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

src/bindings/python/src/openvino/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@
101101
from openvino._pyopenvino import get_version
102102
__version__ = get_version()
103103

104+
from openvino._ov_api import undefined_deprecated
105+
Type.undefined = undefined_deprecated
106+
104107
# Tools
105108
try:
106109
# Model Conversion API - ovc should reside in the main namespace

src/bindings/python/src/openvino/_ov_api.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,6 @@
2323
from openvino.package_utils import deprecatedclassproperty
2424

2525

26-
@deprecatedclassproperty(
27-
name="openvino.Type.undefined", # noqa: N802, N805
28-
version="2026.0",
29-
message="Please use openvino.Type.dynamic instead.",
30-
stacklevel=2,
31-
)
32-
def undefined_deprecated(self): # type: ignore
33-
return Type.dynamic
34-
35-
36-
Type.undefined = undefined_deprecated
37-
38-
3926
class Op(OpBase):
4027
def __init__(self, py_obj: "Op", inputs: Optional[Union[List[Union[Node, Output]], Tuple[Union[Node, Output, List[Union[Node, Output]]]]]] = None) -> None:
4128
super().__init__(py_obj)
@@ -709,3 +696,13 @@ def compile_model(
709696
if isinstance(model, Model):
710697
model = model._Model__model
711698
return core.compile_model(model, device_name, {} if config is None else config)
699+
700+
701+
@deprecatedclassproperty(
702+
name="openvino.Type.undefined", # noqa: N802, N805
703+
version="2026.0",
704+
message="Please use openvino.Type.dynamic instead.",
705+
stacklevel=2,
706+
)
707+
def undefined_deprecated(self): # type: ignore
708+
return Type.dynamic

tools/benchmark_tool/openvino/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@
101101
from openvino._pyopenvino import get_version
102102
__version__ = get_version()
103103

104+
from openvino._ov_api import undefined_deprecated
105+
Type.undefined = undefined_deprecated
106+
104107
# Tools
105108
try:
106109
# Model Conversion API - ovc should reside in the main namespace

tools/ovc/openvino/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@
101101
from openvino._pyopenvino import get_version
102102
__version__ = get_version()
103103

104+
from openvino._ov_api import undefined_deprecated
105+
Type.undefined = undefined_deprecated
106+
104107
# Tools
105108
try:
106109
# Model Conversion API - ovc should reside in the main namespace

0 commit comments

Comments
 (0)