Batuhan Taskaya <isidenti...@gmail.com> added the comment:

> Hum, there seems to be an actual bug here: even with PEP 563, the annotations 
> for "complex targets" are evaluated. For example:

Yes, that is what this issue is about. This bug only surfaced while doing other 
stuff and PEP 563 being the default

> I think the "LOAD_NAME(x), POP_TOP" part is correct, but "LOAD_NAME(z), 
> LOAD_ATTR(w), POP_TOP" should not be generated at all.

Agreed, which is what the PR 23952 has proposed.

I'll proceed with the PR and update it according to the revert of PEP 563, 
which should hopefully fix this only when the future flag is activated.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42737>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to