gh-102444: Fix minor bugs in test_typing highlighted by pyflakes
#102445
+2
−19
test_typing highlighted by pyflakes
#102445