Skip to content

Commit

Permalink
fixup! [red-knot] feat: introduce a new [Type::Todo] variant
Browse files Browse the repository at this point in the history
  • Loading branch information
Slyces committed Sep 29, 2024
1 parent d620d0e commit da90894
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion crates/red_knot_python_semantic/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ impl<'db> Type<'db> {
// TODO raise error
Type::Todo
}
Type::BooleanLiteral(_) => Type::Unknown,
Type::BooleanLiteral(_) => Type::Todo,
Type::StringLiteral(_) => {
// TODO defer to `typing.LiteralString`/`builtins.str` methods
// from typeshed's stubs
Expand Down
3 changes: 0 additions & 3 deletions crates/red_knot_python_semantic/src/types/infer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1920,7 +1920,6 @@ impl<'db> TypeInferenceBuilder<'db> {
is_async: bool,
definition: Definition<'db>,
) {
println!("=> infer comprehension");
let expression = self.index.expression(iterable);
let result = infer_expression_types(self.db, expression);

Expand All @@ -1942,8 +1941,6 @@ impl<'db> TypeInferenceBuilder<'db> {
result.expression_ty(iterable.scoped_ast_id(self.db, self.scope))
};

println!("=> iterable_ty: {:?}", iterable_ty.display(self.db));

let target_ty = if is_async {
// TODO: async iterables/iterators! -- Alex
Type::Todo
Expand Down

0 comments on commit da90894

Please sign in to comment.