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.
|
||||
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],
|
||||
|
|
|
|||
Loading…
Reference in New Issue