konradhalas / dacite

Simple creation of data classes from dictionaries.
MIT License
1.72k stars 106 forks source link

Fix issues with caching internal function calls #258

Closed jasisz closed 2 months ago

jasisz commented 2 months ago

It seems that adding the typed=True to lru_cache helps for the internal function calls issues.

This solves at least the following issue https://github.com/konradhalas/dacite/issues/236 (took the test itself from there) but possibly some others.