]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in dataclasses module (GH-21109) (#21111)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 24 Jun 2020 11:14:10 +0000 (04:14 -0700)
committerGitHub <noreply@github.com>
Wed, 24 Jun 2020 11:14:10 +0000 (07:14 -0400)
Automerge-Triggered-By: @matrixise
(cherry picked from commit 80526f68411a9406a9067095fbf6a0f88047cac5)

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Lib/dataclasses.py

index 74f79294e81bd8bccf87f7c8ec2669cc7b1bfe2b..10bb33e3746a8e5481a6f3b33e5afaeaf840737b 100644 (file)
@@ -1092,7 +1092,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