Eric V. Smith <[email protected]> added the comment:
Yes, I'm sure it happens.
from dataclasses import dataclass
@dataclass
class Foo:
foo: int
def __init__(self, a, b, c):
self.foo = a * b * c
@dataclass
class Bar(Foo):
bar: int
print(Bar(1, 2))
print(Foo(1, 2, 3))
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue43835>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com