◐ Shell
clean mode source ↗

Message 376594 - Python tracker

$ cat t.py
from dataclasses import dataclass

@dataclass
class Foo:
    bar: int

Foo()
$ python t.py
Traceback (most recent call last):
  File "/home/isidentical/cpython/cpython/t.py", line 7, in <module>
    Foo()
TypeError: __create_fn__.<locals>.__init__() missing 1 required positional argument: 'bar'