mirror of https://github.com/astral-sh/ruff
regen
This commit is contained in:
parent
53ac09c920
commit
5de62caff6
|
|
@ -2726,7 +2726,7 @@ mod tests {
|
||||||
// Empty parameters with a return type.
|
// Empty parameters with a return type.
|
||||||
assert_snapshot!(
|
assert_snapshot!(
|
||||||
display_signature_multiline(&db, [], Some(Type::none(&db))),
|
display_signature_multiline(&db, [], Some(Type::none(&db))),
|
||||||
@"() -> None"
|
@"def _() -> None"
|
||||||
);
|
);
|
||||||
|
|
||||||
// Single parameter type (no name) with a return type.
|
// 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))],
|
[Parameter::positional_only(None).with_annotated_type(Type::none(&db))],
|
||||||
Some(Type::none(&db))
|
Some(Type::none(&db))
|
||||||
),
|
),
|
||||||
@"(None, /) -> None"
|
@"def _(None, /) -> None"
|
||||||
);
|
);
|
||||||
|
|
||||||
// Two parameters where one has annotation and the other doesn't.
|
// Two parameters where one has annotation and the other doesn't.
|
||||||
|
|
@ -2753,7 +2753,7 @@ mod tests {
|
||||||
Some(Type::none(&db))
|
Some(Type::none(&db))
|
||||||
),
|
),
|
||||||
@r"
|
@r"
|
||||||
(
|
def _(
|
||||||
x=int,
|
x=int,
|
||||||
y: str = str
|
y: str = str
|
||||||
) -> None
|
) -> None
|
||||||
|
|
@ -2771,7 +2771,7 @@ mod tests {
|
||||||
Some(Type::none(&db))
|
Some(Type::none(&db))
|
||||||
),
|
),
|
||||||
@r"
|
@r"
|
||||||
(
|
def _(
|
||||||
x,
|
x,
|
||||||
y,
|
y,
|
||||||
/
|
/
|
||||||
|
|
@ -2790,7 +2790,7 @@ mod tests {
|
||||||
Some(Type::none(&db))
|
Some(Type::none(&db))
|
||||||
),
|
),
|
||||||
@r"
|
@r"
|
||||||
(
|
def _(
|
||||||
x,
|
x,
|
||||||
/,
|
/,
|
||||||
y
|
y
|
||||||
|
|
@ -2809,7 +2809,7 @@ mod tests {
|
||||||
Some(Type::none(&db))
|
Some(Type::none(&db))
|
||||||
),
|
),
|
||||||
@r"
|
@r"
|
||||||
(
|
def _(
|
||||||
*,
|
*,
|
||||||
x,
|
x,
|
||||||
y
|
y
|
||||||
|
|
@ -2828,7 +2828,7 @@ mod tests {
|
||||||
Some(Type::none(&db))
|
Some(Type::none(&db))
|
||||||
),
|
),
|
||||||
@r"
|
@r"
|
||||||
(
|
def _(
|
||||||
x,
|
x,
|
||||||
*,
|
*,
|
||||||
y
|
y
|
||||||
|
|
@ -2867,7 +2867,7 @@ mod tests {
|
||||||
Some(KnownClass::Bytes.to_instance(&db))
|
Some(KnownClass::Bytes.to_instance(&db))
|
||||||
),
|
),
|
||||||
@r"
|
@r"
|
||||||
(
|
def _(
|
||||||
a,
|
a,
|
||||||
b: int,
|
b: int,
|
||||||
c=Literal[1],
|
c=Literal[1],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue