forgot to add all to_ methods to preference

This commit is contained in:
Diogo Sousa
2023-09-27 13:12:35 +01:00
parent d2b3a0a2f3
commit 2aeb694ef3

View File

@@ -19,9 +19,9 @@ class Preferences(BaseModel):
table_style: Literal["dark", "light"] = "dark"
request_timeout: PositiveInt = 15
metadata: bool = True
obbject_method: Optional[Literal["to_df", "to_dict"]] = Field(
default=None, description="Method to apply to OBBject by default."
)
obbject_method: Optional[
Literal["to_dataframe", "to_df", "to_polars", "to_numpy", "to_dict", "to_chart"]
] = Field(default=None, description="Method to apply to OBBject by default.")
model_config = ConfigDict(validate_assignment=True)