[3.10] gh-102444: Fix minor bugs in `test_typing` highlighted by pyflakes (#102445) (#102452)

(cherry picked from commit 96e1022)
1 file changed