Skip to content

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

[PyOV] add test dependency for pep585 (typehints) (#31348)

Anastasia Kuporosovaebcc3fb299d6
diff --git a/src/bindings/python/requirements_test.txt b/src/bindings/python/requirements_test.txt
index 9d122c728fb..2714b4cba5b 100644
--- a/src/bindings/python/requirements_test.txt
+++ b/src/bindings/python/requirements_test.txt
@@ -13,6 +13,7 @@ flake8-docstrings<=1.7.0
flake8-eradicate<=1.5.0
flake8-executable<=2.1.3
flake8-expression-complexity<=0.0.11
+flake8-pep585<=0.1.7
flake8-print<=5.0.0
flake8-pytest-style<=2.1.0
flake8-rst-docstrings<=0.3.1
diff --git a/src/bindings/python/setup.cfg b/src/bindings/python/setup.cfg
index 8f28d0291bb..c932db80ccd 100644
--- a/src/bindings/python/setup.cfg
+++ b/src/bindings/python/setup.cfg
@@ -64,6 +64,7 @@ max-parameters-amount = 8
show_source = True
docstring-convention = google
enable-extensions = G
+pep585-activation = always
per-file-ignores =
src/openvino/*/ops.py: VNE001,VNE003
src/openvino/preprocess/torchvision/*: N801, VNE001