We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a298d67 commit 3416461Copy full SHA for 3416461
1 file changed
test-data/unit/check-unreachable-code.test
@@ -1655,5 +1655,5 @@ main:4: error: Statement is unreachable
1655
# flags: --warn-unreachable
1656
from typing import Any, Optional
1657
def main(contents: Any, commit: Optional[str]) -> None:
1658
- if contents.get("commit") == commit and (commit is not None or 1):
1659
- pass
+ if contents.get("commit") == commit:
+ reveal_type(commit) # N: Revealed type is "builtins.str | None"
0 commit comments