Skip to content

Commit 61e49d9

Browse files
disable pyupgrade
Signed-off-by: Ashwin Vaidya <[email protected]>
1 parent fe65ede commit 61e49d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

model_api/python/model_api/adapters/openvino_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def __init__(
133133
self.is_onnx_file = False
134134
self.onnx_metadata = {}
135135

136-
if isinstance(self.model_path, str | Path):
136+
if isinstance(self.model_path, (str, Path)):
137137
if Path(self.model_path).suffix == ".onnx" and weights_path:
138138
log.warning(
139139
'For model in ONNX format should set only "model_path" parameter.'

model_api/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ lint.select = [
9797
"I", # isort (`I`)
9898
# "N", # pep8-naming (`N`)
9999
# "D", # pydocstyle (`D`)
100-
"UP", # pyupgrade (`UP`)
100+
# "UP", # pyupgrade (`UP`) # need min python version 3.10
101101
# "YTT", # flake8-2020 (`YTT`)
102102
# "ANN", # flake8-annotations (`ANN`)
103103
# "S", # flake8-bandit (`S`)

0 commit comments

Comments
 (0)