Really strange behavior here, when this statement is on the module level it creates a silently unreachable branch, but when in a scope it doesn't create unreachable
importsysdeffoo() ->None:
assertsys.platform=="AMONGUS"a# error, reachable ❌cond: boolifcond:
assertsys.platform=="AMONGUS"a# error, reachable ❌assertsys.platform=="AMONGUS"a# no error, silent unreachable ✅
playground
Related #11438
Related #11361
Really strange behavior here, when this statement is on the module level it creates a silently unreachable branch, but when in a scope it doesn't create unreachable
playground
Related #11438
Related #11361