Skip to content

Commit

Permalink
Removed 'arbitrary_types_allowed=True' from Pydantic configs (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza authored Sep 3, 2024
1 parent 48c5ef6 commit d8981ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/gsm8k/src/aviary/gsm8k/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


class CalculatorEnvConfig(BaseModel):
model_config = ConfigDict(extra="forbid", arbitrary_types_allowed=True)
model_config = ConfigDict(extra="forbid")

correct_reward: float = 1.0
incorrect_reward: float = 0.0
Expand Down
2 changes: 1 addition & 1 deletion packages/hotpotqa/src/aviary/hotpotqa/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ class HotPotQAEnvConfig(BaseModel):
including the path to the data repository and the specific path to the prompt file.
"""

model_config = ConfigDict(extra="forbid", arbitrary_types_allowed=True)
model_config = ConfigDict(extra="forbid")

shuffle_data: bool = Field(
default=False, description="Set True to shuffle the dataset after loading."
Expand Down
2 changes: 1 addition & 1 deletion src/aviary/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def iter_batches(
class TaskConfig(BaseModel):
"""Convenience for making a config file entry for a TaskDataset."""

model_config = ConfigDict(extra="forbid", arbitrary_types_allowed=True)
model_config = ConfigDict(extra="forbid")

name: str
task_kwargs: dict[str, BaseModel | JsonValue] = Field(
Expand Down

0 comments on commit d8981ab

Please sign in to comment.