We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2ea289 commit 67670a1Copy full SHA for 67670a1
1 file changed
monai/bundle/workflows.py
@@ -78,10 +78,10 @@ def __init__(
78
self.properties = json.load(json_file)
79
self.workflow_type = None
80
return
81
- if workflow_type.lower() in self.supported_train_type:
+ if workflow_type.lower() in self.supported_train_type: # type: ignore[union-attr]
82
self.properties = {**TrainProperties, **MetaProperties}
83
self.workflow_type = "train"
84
- elif workflow_type.lower() in self.supported_infer_type:
+ elif workflow_type.lower() in self.supported_infer_type: # type: ignore[union-attr]
85
self.properties = {**InferProperties, **MetaProperties}
86
self.workflow_type = "infer"
87
else:
0 commit comments