From c6f4c106b05eddaec0b3f85630abd717d892529d Mon Sep 17 00:00:00 2001 From: David Peter Date: Thu, 28 Nov 2024 22:47:18 +0100 Subject: [PATCH] Updates --- .../resources/mdtest/statically-known-branches.md | 4 ++-- crates/red_knot_python_semantic/src/semantic_index.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/red_knot_python_semantic/resources/mdtest/statically-known-branches.md b/crates/red_knot_python_semantic/resources/mdtest/statically-known-branches.md index f1e7460bed..51f24f8bf3 100644 --- a/crates/red_knot_python_semantic/resources/mdtest/statically-known-branches.md +++ b/crates/red_knot_python_semantic/resources/mdtest/statically-known-branches.md @@ -238,8 +238,8 @@ reveal_type(C.x) # revealed: int | str ## TODO -- boundness +- declarations vs bindings => NoDefault: \_NoDefaultType - conditional imports - conditional class definitions - compare with tests in if.md=>Statically known branches -- is the change here correct: +- boundness diff --git a/crates/red_knot_python_semantic/src/semantic_index.rs b/crates/red_knot_python_semantic/src/semantic_index.rs index 353d8e3030..5d142b6673 100644 --- a/crates/red_knot_python_semantic/src/semantic_index.rs +++ b/crates/red_knot_python_semantic/src/semantic_index.rs @@ -1244,7 +1244,7 @@ x ); let index = semantic_index(&db, file); - let global_table = index.symbol_table(FileScopeId::global()); + // let global_table = index.symbol_table(FileScopeId::global()); let use_def = index.use_def_map(FileScopeId::global());