Closed multimeric closed 1 year ago
Hi @multimeric , thank you for sharing the bug.
It is definitely my mistake adding a type variable to MagicTemplate
, but I don't know why python>=3.9 did not treat it as an error...
FYI, python 3.8 is no longer supported (following NEP29). I recommend you to use python>=3.9 to get the newer updates.
I think people tend to follow the Python EOL timelines, and 3.8 is not yet end of life.
Thanks for the fix. Any chance you could publish a new patch version so I could get Python 3.8 working again?
Sure. I dropped 3.8 just recently so I think it'll not take much time.
There seems to be a bug that only appears in Python 3.8. You can reproduce it as follows:
Result:
I understand the error. It thinks that
class BaseGui(MagicTemplate[_W])
is treatingMagicTemplate
like a generic class when instead it just defines__getitem__()
for another reason. However, I have no idea why the Python version affects this.