You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromtypingimportNoReturndeffoo() ->NoReturn:
raiseExceptiondefbar() ->NoReturn:
foo()
foo()
print("hi") # no warning
The first call to foo is suppress the unreachable intentionally, (same with the second). But the print("hi) should definitely show an unreachable error.
The first call to
foois suppress theunreachableintentionally, (same with the second). But theprint("hi)should definitely show an unreachable error.