Yury Selivanov added the comment: > The workaround is using lru_cache(typed=True). Yes, seems to be working! Thanks. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue27077> _______________________________________