mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:44:56 +00:00
[ty] Sync vendored typeshed stubs (#19368)
Co-authored-by: typeshedbot <> Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
parent
c0d04f2d56
commit
a0d4e1f854
469 changed files with 10781 additions and 23229 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:221:5
|
||||
--> stdlib/json/__init__.pyi:219:5
|
||||
|
|
||||
219 | """
|
||||
220 |
|
||||
221 | def loads(
|
||||
217 | """
|
||||
218 |
|
||||
219 | def loads(
|
||||
| ^^^^^
|
||||
222 | s: str | bytes | bytearray,
|
||||
220 | s: str | bytes | bytearray,
|
||||
| -------------------------- Parameter declared here
|
||||
223 | *,
|
||||
224 | cls: type[JSONDecoder] | None = None,
|
||||
221 | *,
|
||||
222 | 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