This commit is contained in:
Aria Desires 2025-12-16 09:50:26 -05:00
parent 53ac09c920
commit 5de62caff6
1 changed files with 8 additions and 8 deletions

View File

@ -2726,7 +2726,7 @@ mod tests {
// Empty parameters with a return type.
assert_snapshot!(
display_signature_multiline(&db, [], Some(Type::none(&db))),
@"() -> None"
@"def _() -> None"
);
// Single parameter type (no name) with a return type.
@ -2736,7 +2736,7 @@ mod tests {
[Parameter::positional_only(None).with_annotated_type(Type::none(&db))],
Some(Type::none(&db))
),
@"(None, /) -> None"
@"def _(None, /) -> None"
);
// Two parameters where one has annotation and the other doesn't.
@ -2753,7 +2753,7 @@ mod tests {
Some(Type::none(&db))
),
@r"
(
def _(
x=int,
y: str = str
) -> None
@ -2771,7 +2771,7 @@ mod tests {
Some(Type::none(&db))
),
@r"
(
def _(
x,
y,
/
@ -2790,7 +2790,7 @@ mod tests {
Some(Type::none(&db))
),
@r"
(
def _(
x,
/,
y
@ -2809,7 +2809,7 @@ mod tests {
Some(Type::none(&db))
),
@r"
(
def _(
*,
x,
y
@ -2828,7 +2828,7 @@ mod tests {
Some(Type::none(&db))
),
@r"
(
def _(
x,
*,
y
@ -2867,7 +2867,7 @@ mod tests {
Some(KnownClass::Bytes.to_instance(&db))
),
@r"
(
def _(
a,
b: int,
c=Literal[1],