Message405676
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. |
|
Date |
User |
Action |
Args |
2021-11-04 10:50:16 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, sobolevn, arhadthedev |
2021-11-04 10:50:16 | serhiy.storchaka | set | messageid: <1636023016.73.0.148886977765.issue45672@roundup.psfhosted.org> |
2021-11-04 10:50:16 | serhiy.storchaka | link | issue45672 messages |
2021-11-04 10:50:16 | serhiy.storchaka | create | |
|