File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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.'
Original file line number Diff line number Diff 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`)
You can’t perform that action at this time.
0 commit comments