Skip to content

Commit d87cd7c

Browse files
committed
nit
1 parent 705f663 commit d87cd7c

File tree

2 files changed

+5
-6
lines changed
  • crates/red_knot_python_semantic

2 files changed

+5
-6
lines changed

crates/red_knot_python_semantic/resources/mdtest/import/star.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,17 @@ D: (E := 4) = (F := 5) # error: [invalid-type-form]
149149
for G in [1]:
150150
...
151151

152-
for (H := 4).whatever in [2]:
153-
... # error: [unresolved-attribute]
152+
for (H := 4).whatever in [2]: # error: [unresolved-attribute]
153+
...
154154

155155
class I: ...
156156

157157
def J(): ...
158158

159159
type K = int
160160

161-
with () as L:
162-
... # error: [invalid-context-manager]
161+
with () as L: # error: [invalid-context-manager]
162+
...
163163

164164
match 42:
165165
case {"something": M}:

crates/red_knot_python_semantic/src/types/infer.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ use crate::semantic_index::definition::{
5454
};
5555
use crate::semantic_index::expression::{Expression, ExpressionKind};
5656
use crate::semantic_index::symbol::{FileScopeId, NodeWithScopeKind, NodeWithScopeRef, ScopeId};
57-
use crate::semantic_index::SemanticIndex;
58-
use crate::semantic_index::{semantic_index, symbol_table};
57+
use crate::semantic_index::{semantic_index, symbol_table, SemanticIndex};
5958
use crate::symbol::{
6059
builtins_module_scope, builtins_symbol, explicit_global_symbol,
6160
module_type_implicit_global_symbol, symbol, symbol_from_bindings, symbol_from_declarations,

0 commit comments

Comments
 (0)