Skip to content

Commit

Permalink
[Py OV] Change simplefilter to filterwarnings in ov.runtime (#28905)
Browse files Browse the repository at this point in the history
### Details:
 - *item1*
- previous warning: ![Screenshot 2025-01-10
114701](https://github.com/user-attachments/assets/0a027a16-350f-491c-8c70-a71f146348f1)


 - current warning: 

![warn-feb10-interactive](https://github.com/user-attachments/assets/d8c4821d-0b9a-4062-8598-aad8320ddede)
### Tickets:
 - *ticket-id*

Signed-off-by: Alicja Miloszewska <alicja.miloszewska@intel.com>
  • Loading branch information
almilosz authored Feb 13, 2025
1 parent d04fd6e commit 6aa2544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bindings/python/src/openvino/runtime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
# noqa: F401

import warnings
warnings.simplefilter("always", DeprecationWarning)
warnings.filterwarnings("once", category=DeprecationWarning, module="openvino.runtime")
warnings.warn(
"The `openvino.runtime` module is deprecated and will be removed in the 2026.0 release. "
"Please replace `openvino.runtime` with `openvino`.",
DeprecationWarning,
stacklevel=2
stacklevel=1
)


Expand Down

0 comments on commit 6aa2544

Please sign in to comment.