cpython icon indicating copy to clipboard operation
cpython copied to clipboard

gh-142781: Fix type confusion in zoneinfo weak cache

Open superboy-zjc opened this issue 1 month ago • 4 comments

Validate the types returned from _weak_cache.get() and _weak_cache.setdefault() to prevent type confusion when a ZoneInfo subclass provides a misbehaving cache implementation.

Fixes gh-142781.

superboy-zjc avatar Dec 18 '25 09:12 superboy-zjc