ref: Fix type checking errors and ensure scripts
gets checked in CI…
#4597
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
scripts
gets checked in CI…
#4597