![](https://secure.gravatar.com/avatar/1b108f4b1167bbf9d35404290f53e1eb.jpg?s=120&d=mm&r=g)
On 12/23/23 02:09, Eric V. Smith via Python-ideas wrote:
On 12/21/2023 4:38 PM, Steve Jorgensen wrote:
I am finding that it would be useful to be able to define a dataclass that is an abstract base class and define some of its field as abstract.
As I am typing this, I realize that I could presumably write some code to implement what I'm asking for. Maybe it is a good enough idea to make part of the standard API in any case though? I'm thinking that a field would be made abstract by passing `abstract=True` as an argument to `dataclasses.field()`.
You're better off discussing this on discuss.python.org as this mailing list is basically dead.
It can't be dead - you're here!
And when you do post over there, please provide an example. It's not clear what would happen in the generated code if abstract=True.
-- Regards =dn