Skip to content

Commit 0f05f48

Browse files
committed
fix mypy
1 parent f620a90 commit 0f05f48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnx_diagnostic/torch_models/validate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ def shrink_config(cfg: Dict[str, Any]) -> Dict[str, Any]:
265265

266266

267267
def _preprocess_model_id(
268-
model_id: str, subfolder: str, same_as_pretrained: bool, use_pretrained: bool
269-
) -> Tuple[str, str, bool, bool]:
268+
model_id: str, subfolder: Optional[str], same_as_pretrained: bool, use_pretrained: bool
269+
) -> Tuple[str, Optional[str], bool, bool]:
270270
if subfolder or "//" not in model_id:
271271
return model_id, subfolder, same_as_pretrained, use_pretrained
272272
spl = model_id.split("//")

0 commit comments

Comments
 (0)