fix: resolve 36288 mypy errors (#37850)