mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:24:57 +00:00
[ty] Sync vendored typeshed stubs (#19461)
Co-authored-by: typeshedbot <> Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
parent
c2380fa0e2
commit
3785e13231
597 changed files with 1393 additions and 2106 deletions
|
@ -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:219:5
|
||||
--> stdlib/json/__init__.pyi:218:5
|
||||
|
|
||||
217 | """
|
||||
218 |
|
||||
219 | def loads(
|
||||
216 | """
|
||||
217 |
|
||||
218 | def loads(
|
||||
| ^^^^^
|
||||
220 | s: str | bytes | bytearray,
|
||||
219 | s: str | bytes | bytearray,
|
||||
| -------------------------- Parameter declared here
|
||||
221 | *,
|
||||
222 | cls: type[JSONDecoder] | None = None,
|
||||
220 | *,
|
||||
221 | cls: type[JSONDecoder] | None = None,
|
||||
|
|
||||
info: rule `invalid-argument-type` is enabled by default
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue