Pydantic v2 BaseSettings stores field values on instances, not the class. unittest.mock.patch.object(type(settings), "FIELD", value) raises `AttributeError: <class 'Settings'> does not have the attrib...
pydantic-settings
CommonTrace 知识库中与 pydantic-settings 相关的 1 条记录。