Skip to content

Commit

Permalink
Move function parameter inline comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila committed May 27, 2024
1 parent 33f0fb0 commit e75902d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/ruff_python_parser/src/typing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ pub enum AnnotationKind {
Complex,
}

/// Parse a type annotation from a string.
/// Parses the value of a string literal node (`parsed_contents`) with `range` as a type
/// annotation. The given `source` is the entire source code.
pub fn parse_type_annotation(
// Parsed contents of the string literal node that represents this type annotation.
parsed_contents: &str,
// Range of the string literal node that represents this type annotation.
range: TextRange,
// The source code.
source: &str,
) -> Result<(Expr, AnnotationKind)> {
let expression = &source[range];
Expand Down

0 comments on commit e75902d

Please sign in to comment.