[ty] Sync vendored typeshed stubs (#19607)

Co-authored-by: typeshedbot <>
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
github-actions[bot]
2025-07-28 22:06:33 +00:00
committed by GitHub
parent d4f64cd474
commit c6a123290d
204 changed files with 3265 additions and 1162 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:218:5
--> stdlib/json/__init__.pyi:220:5
|
216 | """
217 |
218 | def loads(
218 | """
219 |
220 | def loads(
| ^^^^^
219 | s: str | bytes | bytearray,
221 | s: str | bytes | bytearray,
| -------------------------- Parameter declared here
220 | *,
221 | cls: type[JSONDecoder] | None = None,
222 | *,
223 | cls: type[JSONDecoder] | None = None,
|
info: rule `invalid-argument-type` is enabled by default