community[patch]: Remove more @allow_reuse=True validators (#25236)

Remove some additional allow_reuse=True usage in @root_validators.
This commit is contained in:
Eugene Yurtsev
2024-08-09 11:10:27 -04:00
committed by GitHub
parent 6e57aa7c36
commit bd6c31617e
5 changed files with 5 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ class PowerBIDataset(BaseModel):
"""Fix the table names."""
return [fix_table_name(table) for table in table_names]
@root_validator(pre=True, allow_reuse=True)
@root_validator(pre=True)
def token_or_credential_present(cls, values: Dict[str, Any]) -> Dict[str, Any]:
"""Validate that at least one of token and credentials is present."""
if "token" in values or "credential" in values: