Skip to content

Commit

Permalink
cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Sep 4, 2024
1 parent 82b89bb commit 53cc0a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/red_knot_python_semantic/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use infer::TypeInferenceBuilder;
use ruff_db::files::File;
use ruff_python_ast::{self as ast, AnyNodeRef};
use ruff_python_ast as ast;

use crate::semantic_index::ast_ids::HasScopedAstId;
use crate::semantic_index::definition::{Definition, DefinitionKind};
Expand Down Expand Up @@ -487,7 +487,7 @@ enum IterationOutcome<'db> {
impl<'db> IterationOutcome<'db> {
fn unwrap_with_diagnostic(
self,
iterable_node: AnyNodeRef,
iterable_node: ast::AnyNodeRef,
inference_builder: &mut TypeInferenceBuilder<'db>,
) -> Type<'db> {
match self {
Expand Down
2 changes: 1 addition & 1 deletion crates/red_knot_python_semantic/src/types/infer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1842,7 +1842,7 @@ impl<'db> TypeInferenceBuilder<'db> {
.iterate(self.db)
.unwrap_with_diagnostic(value.as_ref().into(), self);

// TODO get type from `SendType` of generator/awaitable
// TODO get type from `ReturnType` of generator
Type::Unknown
}

Expand Down

0 comments on commit 53cc0a2

Please sign in to comment.