community[patch]: Update root_validators to use explicit pre=True or pre=False (#23736)

This commit is contained in:
Eugene Yurtsev
2024-07-01 17:13:23 -04:00
committed by GitHub
parent 5b1de2ae93
commit f24e38876a
7 changed files with 8 additions and 8 deletions

View File

@@ -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.