Author cybertreiber
Recipients cybertreiber, eric.smith, gvanrossum
Date 2020-01-01.17:10:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1577898609.93.0.170287199313.issue39134@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-01-01 17:10:09cybertreibersetrecipients: + cybertreiber, gvanrossum, eric.smith
2020-01-01 17:10:09cybertreibersetmessageid: <1577898609.93.0.170287199313.issue39134@roundup.psfhosted.org>
2020-01-01 17:10:09cybertreiberlinkissue39134 messages
2020-01-01 17:10:09cybertreibercreate