mirror of
https://github.com/python/cpython.git
synced 2025-08-25 03:04:55 +00:00
Fix typo in dataclasses module (GH-21109) (#21110)
Automerge-Triggered-By: @matrixise
(cherry picked from commit 80526f6841
)
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
This commit is contained in:
parent
02d5c74f89
commit
4b80cfbaf6
1 changed files with 1 additions and 1 deletions
|
@ -1094,7 +1094,7 @@ def _asdict_inner(obj, dict_factory):
|
|||
# method, because:
|
||||
# - it does not recurse in to the namedtuple fields and
|
||||
# convert them to dicts (using dict_factory).
|
||||
# - I don't actually want to return a dict here. The the main
|
||||
# - I don't actually want to return a dict here. The main
|
||||
# use case here is json.dumps, and it handles converting
|
||||
# namedtuples to lists. Admittedly we're losing some
|
||||
# information here when we produce a json list instead of a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue