Closed clemgaut closed 1 year ago
I had a pydantic model with a config having arbitrary_types_allowed set to True
class MyModel(BaseModel): class Config: arbitrary_types_allowed: bool = True variable1: np.ndarray variable2: float
After applying the bump-pydantic script, it generated the following code:
class MyModel(BaseModel): model_config = ConfigDict() variable1: np.ndarray variable2: float
I would have expected the following code:
class MyModel(BaseModel): model_config = ConfigDict(arbitrary_types_allowed=True) variable1: np.ndarray variable2: float
I had a pydantic model with a config having arbitrary_types_allowed set to True
After applying the bump-pydantic script, it generated the following code:
I would have expected the following code: