Fix typo in dataclasses module (GH-21109) (#21111)
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
4f5dde463b
commit
0029099dec
|
@ -1092,7 +1092,7 @@ def _asdict_inner(obj, dict_factory):
|
||||||
# method, because:
|
# method, because:
|
||||||
# - it does not recurse in to the namedtuple fields and
|
# - it does not recurse in to the namedtuple fields and
|
||||||
# convert them to dicts (using dict_factory).
|
# 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
|
# use case here is json.dumps, and it handles converting
|
||||||
# namedtuples to lists. Admittedly we're losing some
|
# namedtuples to lists. Admittedly we're losing some
|
||||||
# information here when we produce a json list instead of a
|
# information here when we produce a json list instead of a
|
||||||
|
|
Loading…
Reference in New Issue