You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fine-grained: Support NewType and reset subtype caches (python#4656)
NewType work highlighted an issue with subtype caches with stale
information leaking, and this fixes that issue as well. We reset the
subtype cache in two places:
* When calculating the MRO; we reset caches of all base classes as
well.
* When merging a new version of a TypeInfo, which may have a
different MRO; we reset all caches of base classes in the old
MRO, as they might no longer be supertypes.
0 commit comments