Closed oroppas closed 3 years ago
Hello @oroppas, thank for the report. It looks that problem is that graalpython translate line
_path: Option[Path]
to somothing like
_path: {type of Option[Path]} = None
and createss _path
variable in the class body. I will try to fix it.
Why you have here the line with _path: Optional[Path]
?
Hi @ppisl,
It's been a while since I submitted this bug report and my memory is a bit rusty but I think I found it when I tried rich (https://github.com/willmcgugan/rich). https://github.com/willmcgugan/rich/blob/master/rich/style.py#L63
@oroppas Thanks for the response. The problem is clear to me. I'm working on it.
@ppisl I can confirm the fix works. Thanks!
@ppisl I can confirm the fix works. Thanks!
You are welcome and thanks for chacking it.
GraalPython gives
ValueError: '_path' in __slots__ conflicts with class variable
for the following code:CPython gives no error.