dacite.from_dict: NamedTuple
type hook does not work with cast=[tuple]
(regression from v1.7.0)
#253
Labels
bug
Something isn't working
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 omit
cast=[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)The text was updated successfully, but these errors were encountered: