Skip to content

Commit

Permalink
Extend docs for CheckableExprType
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Jul 11, 2023
1 parent e65e9ba commit 983d381
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/ruff/src/rules/ruff/rules/invalid_index_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ pub(crate) fn invalid_index_type<'a>(checker: &mut Checker, expr: &'a ExprSubscr
}
}

/// An expression that can be checked for type compatibility
/// An expression that can be checked for type compatibility.
///
/// These are generally "literal" type expressions in that we know their concrete type
/// without additional analysis; opposed to expressions like a function call where we
/// cannot determine what type it may return.
#[derive(Debug)]
enum CheckableExprType<'a> {
Constant(&'a Constant),
Expand Down

0 comments on commit 983d381

Please sign in to comment.