[ty] Fix Inconsistent casing in diagnostic (#18084)

This commit is contained in:
Chandra Kiran G 2025-05-14 11:56:48 +05:30 committed by GitHub
parent 8cbd433a31
commit d17557f0ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 16 additions and 16 deletions

View file

@ -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
```