mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
This enables type checking for Python files under etc/ci by adding
etc/ci/*.py to pyrefly's project-includes in pyproject.toml.
Enabling these checks surfaced a few type issues, which are addressed
here :
a) Use text=True in subprocess usage to avoid bytes/str mismatches
b) Remove unnecessary encode/decode calls
c) Guard against None stdout in chaos_monkey_test.py
d) Suppress unresolved optional imports in upload_nightly.py
(runtime dependencies declared via uv script metadata)
After these changes, ./mach test-tidy passes successfully locally.
Fixes: #42653
Signed-off-by: Keerti Gupta <24bsm032@iiitdmj.ac.in>