feat(typing): Remove "libs" from pyright exclude and fix typing errors (#26423)

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This commit is contained in:
Asuka Minato 2025-09-29 20:23:22 +09:00 • committed by GitHub
commit e5d4235f1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 7 deletions

View file

@ -94,7 +94,7 @@ def register_external_error_handlers(api: Api):
got_request_exception.send(current_app, exception=e)
status_code = 500
data = getattr(e, "data", {"message": http_status_message(status_code)})
data: dict[str, Any] = getattr(e, "data", {"message": http_status_message(status_code)})
# 🔒 Normalize non-mapping data (e.g., if someone set e.data = Response)
if not isinstance(data, dict):