Avoid if-else simplification for TYPE_CHECKING
blocks
#8072
+97
−43
TYPE_CHECKING
blocks
#8072