Alexander Hirner <[email protected]> added the comment:
Dropping ABCMeta stops at instantiation. This should be in the dataclass code
that's been generated.
File "<string>", line 2, in __init__
AttributeError: can't set attribute
Repro:
```
class QuasiABC:
@property
@abstractmethod
def x(self) -> int: ...
@dataclass(frozen=True)
class E(QuasiABC):
x: int
E(10)
```
Interestingly, frozen=False is giving the same error.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39134>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com