For the record; I did some digging, it's because we're reusing a variable name and mypy gets confused (https://github.com/web-platform-tests/wpt/pull/23669#issuecomment-630381158). We'll either rename it or explicitly type it.