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
There are sometimes cases where I'd like deliberately put something in a statically-unreachable section---maybe some asserts, maybe some debug info, etc.---in case it does hit that case at runtime. I currently silence them with a # type: ignore[misc] which isn't particularly informative to someone reading the code. Could we give unreachable its own dedicated error/warning code?
EDIT: just so it's clear, I do want to keep the warning on to detect legitimate issues.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
There are sometimes cases where I'd like deliberately put something in a statically-unreachable section---maybe some asserts, maybe some debug info, etc.---in case it does hit that case at runtime. I currently silence them with a
# type: ignore[misc]
which isn't particularly informative to someone reading the code. Could we giveunreachable
its own dedicated error/warning code?EDIT: just so it's clear, I do want to keep the warning on to detect legitimate issues.
The text was updated successfully, but these errors were encountered: