-
Consider this: from typing import TYPE_CHECKING
if TYPE_CHECKING:
pass
else:
pass # Pyright complains "Code is unreachable" Given that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The code in this area is not analyzed because it is unreachable from the perspective of the code flow engine. I'd argue that it's important for the user to understand that the code in this section is not being analyzed. We've talked about perhaps changing the wording from "Code is unreachable" to something else, but I haven't come up with any phrasing that isn't verbose or more confusing. Let me know if you have suggestions. |
Beta Was this translation helpful? Give feedback.
The code in this area is not analyzed because it is unreachable from the perspective of the code flow engine. I'd argue that it's important for the user to understand that the code in this section is not being analyzed. We've talked about perhaps changing the wording from "Code is unreachable" to something else, but I haven't come up with any phrasing that isn't verbose or more confusing. Let me know if you have suggestions.