mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-16 23:13:31 +00:00
community[patch]: Update root_validators to use explicit pre=True or pre=False (#23736)
This commit is contained in:
@@ -20,7 +20,7 @@ class ConneryService(BaseModel):
|
||||
runner_url: Optional[str] = None
|
||||
api_key: Optional[str] = None
|
||||
|
||||
@root_validator()
|
||||
@root_validator(pre=True)
|
||||
def validate_attributes(cls, values: Dict) -> Dict:
|
||||
"""
|
||||
Validate the attributes of the ConneryService class.
|
||||
|
Reference in New Issue
Block a user