18 from typing
import Any, List, Optional
20 from ..base_parameter
import BaseParameter
21 from ....project
import ProjectType
22 from ....model
import Model
25 class ModelParameter(BaseParameter[int]):
28 def types(self) -> List[type]:
31 def parseValue(self, type_: ProjectType) -> Optional[Any]:
32 if self.value
is None:
35 return Model.fetchById(self.value)