Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Jan 19, 2024
1 parent 2fb76f8 commit 31b4d4a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/pyright-internal/src/tests/samples/unreachable2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from typing import TYPE_CHECKING:

if not TYPE_CHECKING:
...
8 changes: 8 additions & 0 deletions packages/pyright-internal/src/tests/typeEvaluator1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ test('Unreachable1 reportUnreachable', () => {
TestUtils.validateResults(analysisResults, 4, 0, 2, 1, 0);
});

// test('Unreachable2 reportUnreachable (TYPE_CHECKING)', () => {
// const configOptions = new ConfigOptions(Uri.empty());
// configOptions.diagnosticRuleSet.reportUnreachable = 'error';
// const analysisResults = TestUtils.typeAnalyzeSampleFiles(['unreachable2.py'], configOptions);

// TestUtils.validateResults(analysisResults, 0, 0, 0, 0, 0);
// });

test('Builtins1', () => {
const analysisResults = TestUtils.typeAnalyzeSampleFiles(['builtins1.py']);

Expand Down

0 comments on commit 31b4d4a

Please sign in to comment.