We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56533db commit 0301f4eCopy full SHA for 0301f4e
src/rai_bench/rai_bench/benchmark_model.py
@@ -126,9 +126,11 @@ class Scenario(BaseModel):
126
127
task: Task
128
scene_config: SimulationConfig
129
- model_config = ConfigDict(
130
- arbitrary_types_allowed=True
131
- ) # pydantic does not support ABC classes
+ # TODO pydantic does not support ABC classes
+ # model_config field is used to define additional configurations to a model.
+ # Param arbitrary_types_allowed=True, allows a field with
132
+ # an abstract class like SimulationConfig.Without it pydantic will throw validation error
133
+ model_config = ConfigDict(arbitrary_types_allowed=True)
134
135
136
class Benchmark:
0 commit comments