We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Request.json
Any
2 parents fb4f9f5 + 8ac21db commit c0e67e9Copy full SHA for c0e67e9
CHANGES.rst
@@ -9,6 +9,7 @@ Unreleased
9
- The multipart form parser handles a ``\r\n`` sequence at a chunk boundary.
10
:issue:`3065`
11
- Improve CPU usage during Watchdog reloader. :issue:`3054`
12
+- `Request.json` annotation is more accurate. :issue:`3067`
13
14
15
Version 3.1.3
src/werkzeug/wrappers/request.py
@@ -542,7 +542,7 @@ def url_root(self) -> str:
542
json_module = json
543
544
@property
545
- def json(self) -> t.Any | None:
+ def json(self) -> t.Any:
546
"""The parsed JSON data if :attr:`mimetype` indicates JSON
547
(:mimetype:`application/json`, see :attr:`is_json`).
548
0 commit comments