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:
parent
787251f00e
commit
f5161d9add
9 changed files with 98 additions and 268 deletions
5
api/libs/validators.py
Normal file
5
api/libs/validators.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue