Exclude tests directory from pyright type checking (#26496)

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Asuka Minato 2025-10-02 19:51:36 +09:00 • committed by GitHub
commit f5161d9add
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 98 additions and 268 deletions

5
api/libs/validators.py Normal file
View file

@ -0,0 +1,5 @@
def validate_description_length(description: str | None) -> str | None:
"""Validate description length."""
if description and len(description) > 400:
raise ValueError("Description cannot exceed 400 characters.")
return description