[ty] Sync vendored typeshed stubs (#19334)
Co-authored-by: typeshedbot <> Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
committed by
GitHub
parent
059e90a98f
commit
4f60f0e925
@@ -29,17 +29,17 @@ 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:39:5
|
||||
|
|
||||
37 | **kwds: Any,
|
||||
38 | ) -> None: ...
|
||||
39 | def loads(
|
||||
| ^^^^^
|
||||
40 | s: str | bytes | bytearray,
|
||||
| -------------------------- Parameter declared here
|
||||
41 | *,
|
||||
42 | cls: type[JSONDecoder] | None = None,
|
||||
|
|
||||
--> stdlib/json/__init__.pyi:221:5
|
||||
|
|
||||
219 | """
|
||||
220 |
|
||||
221 | def loads(
|
||||
| ^^^^^
|
||||
222 | s: str | bytes | bytearray,
|
||||
| -------------------------- Parameter declared here
|
||||
223 | *,
|
||||
224 | cls: type[JSONDecoder] | None = None,
|
||||
|
|
||||
info: rule `invalid-argument-type` is enabled by default
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user