mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-02 04:48:06 +00:00
[ty] Fix Inconsistent casing in diagnostic (#18084)
This commit is contained in:
parent
8cbd433a31
commit
d17557f0ae
9 changed files with 16 additions and 16 deletions
|
|
@ -318,7 +318,7 @@ def f(cond: bool) -> str:
|
|||
return "hello" if cond else NotImplemented
|
||||
|
||||
def f(cond: bool) -> int:
|
||||
# error: [invalid-return-type] "Return type does not match returned value: Expected `int`, found `Literal["hello"]`"
|
||||
# error: [invalid-return-type] "Return type does not match returned value: expected `int`, found `Literal["hello"]`"
|
||||
return "hello" if cond else NotImplemented
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue