Describe the bugdacite.from_dict fails for a class containing a NamedTuple if you also set cast=[tuple] in your Config
To Reproduce
The following code runs fine with dacite==1.7.0 but fails on dacite==1.8.1.
If you omit cast=[tuple] from the Config it also works on 1.8.1
Describe the bug
dacite.from_dict
fails for a class containing aNamedTuple
if you also setcast=[tuple]
in your ConfigTo Reproduce The following code runs fine with
dacite==1.7.0
but fails ondacite==1.8.1
. If you omitcast=[tuple]
from the Config it also works on1.8.1
Expected behavior
The code above should work fine as it did with
1.7.0
Environment
dacite
version: 1.8.1 (regression from 1.7.0)