Message396250
Hello,
When given a `Field` on a Dataclass, the `__repr__` throws an infinite recursive error when the data type is bytes.
In the `Field` class, the __repr__ is as follows:
```
def __repr__(self):
return (
'Field('
f'name={self.name!r},'
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},'
f'_field_type={self._field_type}'
')'
)
```
The issue is the f'type={self.type!r}, part of the code. |
|
Date |
User |
Action |
Args |
2021-06-21 15:06:36 | andrewonboe | set | recipients:
+ andrewonboe, paul.moore, tim.golden, zach.ware, steve.dower |
2021-06-21 15:06:36 | andrewonboe | set | messageid: <1624287996.71.0.124244983784.issue44475@roundup.psfhosted.org> |
2021-06-21 15:06:36 | andrewonboe | link | issue44475 messages |
2021-06-21 15:06:36 | andrewonboe | create | |
|