[ty] Sync vendored typeshed stubs (#22091)

Co-authored-by: typeshedbot <>
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
github-actions[bot]
2025-12-19 18:23:09 +00:00
committed by GitHub
parent 77de3df150
commit df1552b9a4
52 changed files with 1348 additions and 741 deletions

View File

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