Why PyPy fails when I try to define type annotated class member (e.g. list or dict)?

I have following simple code: from dataclasses import dataclass, field @dataclass class Test: names: list[str] = field(default_factory=list) if __name__ == ‘__main__’: Test([‘a’, ‘b’, ‘c’]) Trying to execute it with latest PyPy available via pyenv at the moment: Python 3.8.12 (9ef55f6fc369, Oct 24 2021, 20:11:54) [PyPy 7.3.7 with GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] I receive… Read More Why PyPy fails when I try to define type annotated class member (e.g. list or dict)?