[issue44649] dataclasses slots with init=False field raises AttributeException

2021-09-04 Thread Christodoulos Tsoulloftas
Christodoulos Tsoulloftas added the comment: Thanks for the update eric, yeah the new error messages are much more comprehensive and I am glad to hear the original issue will be addressed as well. -- ___ Python tracker <https://bugs.python.

[issue44649] dataclasses slots with init=False field raises AttributeException

2021-07-15 Thread Christodoulos Tsoulloftas
New submission from Christodoulos Tsoulloftas : I am trying the new slots directive but I get an AttributeError when I try to access a field with init=False >>> from dataclasses import dataclass, field >>> >>> @dataclass(slots=True) ... class Example: ... a:

[issue43646] ForwardRef name conflict during evaluation

2021-04-15 Thread Christodoulos Tsoulloftas
Christodoulos Tsoulloftas added the comment: @kj I can confirm the issue is resolved with Python 3.10.0a7+ -- status: pending -> open ___ Python tracker <https://bugs.python.org/issu

[issue43646] ForwardRef name conflict during evaluation

2021-03-28 Thread Christodoulos Tsoulloftas
New submission from Christodoulos Tsoulloftas : Consider two modules with the same name forward references with the same type construct ./a.py ``` from typing import Optional class Root: a: Optional["Person"] class Person: value: str ``` ./b.py ``` from typ