Serhiy Storchaka <[email protected]> added the comment:
The tests are passed because this modification does not affect behavior, it
just makes the code slightly less efficient. Replacing i+1 with i just adds one
iteration:
b = bases[i] # == self
if isinstance(b, _BaseGenericAlias) and b is not self:
return ()
Since b is self, the condition is always false.
It is impossible to catch this change in tests because both codes are
equivalent.
----------
resolution: -> not a bug
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue45672>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com