mirror of
https://github.com/astral-sh/ruff
synced 2026-01-10 08:04:26 -05:00
[ty] Sync vendored typeshed stubs (#22091)
Co-authored-by: typeshedbot <> Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
committed by
GitHub
parent
77de3df150
commit
df1552b9a4
@@ -29,16 +29,16 @@ error[invalid-argument-type]: Argument to function `loads` is incorrect
|
||||
| ^ Expected `str | bytes | bytearray`, found `Literal[5]`
|
||||
|
|
||||
info: Function defined here
|
||||
--> stdlib/json/__init__.pyi:220:5
|
||||
--> stdlib/json/__init__.pyi:224:5
|
||||
|
|
||||
218 | """
|
||||
219 |
|
||||
220 | def loads(
|
||||
222 | """
|
||||
223 |
|
||||
224 | def loads(
|
||||
| ^^^^^
|
||||
221 | s: str | bytes | bytearray,
|
||||
225 | s: str | bytes | bytearray,
|
||||
| -------------------------- Parameter declared here
|
||||
222 | *,
|
||||
223 | cls: type[JSONDecoder] | None = None,
|
||||
226 | *,
|
||||
227 | cls: type[JSONDecoder] | None = None,
|
||||
|
|
||||
info: rule `invalid-argument-type` is enabled by default
|
||||
|
||||
|
||||
Reference in New Issue
Block a user