diff options
author | Eric V. Smith <ericvsmith@users.noreply.github.com> | 2018-05-14 15:37:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-14 15:37:28 (GMT) |
commit | 2473eea65d592a80a5362a00362738a33196aba1 (patch) | |
tree | d997a18949e078102f0075f8114562b6718071db /Lib/dataclasses.py | |
parent | 7ffd4c58fae08b29259eebd6cbcd2287820b14e8 (diff) | |
download | cpython-2473eea65d592a80a5362a00362738a33196aba1.zip cpython-2473eea65d592a80a5362a00362738a33196aba1.tar.gz cpython-2473eea65d592a80a5362a00362738a33196aba1.tar.bz2 |
bpo-33494: Change dataclasses.Fields repr to use the repr of each of its members (GH-6798)
Diffstat (limited to 'Lib/dataclasses.py')
-rw-r--r-- | Lib/dataclasses.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/dataclasses.py b/Lib/dataclasses.py index 04e07f8..c60eeaa 100644 --- a/Lib/dataclasses.py +++ b/Lib/dataclasses.py @@ -230,14 +230,14 @@ class Field: def __repr__(self): return ('Field(' f'name={self.name!r},' - f'type={self.type},' - f'default={self.default},' - f'default_factory={self.default_factory},' - f'init={self.init},' - f'repr={self.repr},' - f'hash={self.hash},' - f'compare={self.compare},' - f'metadata={self.metadata}' + f'type={self.type!r},' + f'default={self.default!r},' + f'default_factory={self.default_factory!r},' + f'init={self.init!r},' + f'repr={self.repr!r},' + f'hash={self.hash!r},' + f'compare={self.compare!r},' + f'metadata={self.metadata!r}' ')') # This is used to support the PEP 487 __set_name__ protocol in the |