You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug This is issue is potentially related to #73.
If a tuple is expected, but the data contains another collection (e.g. a list), the tuple is treated as a collection, as opposed to the more specific treatment of tuples: If the tuple is expected to contain mixed values, these types are not cast correctly.
Describe the bug
This is issue is potentially related to #73.
If a tuple is expected, but the data contains another collection (e.g. a list), the tuple is treated as a collection, as opposed to the more specific treatment of tuples: If the tuple is expected to contain mixed values, these types are not cast correctly.
To Reproduce
Expected behavior
Neither of these examples should raise an exception.
Environment
dacite
version: 1.8.0Additional context
The problem lies in the fact that the tuple-specific treatment is only used, if the data also contains a tuple.
This error only occurs if cast includes tuple. Otherwise both examples would raise an exception due to an list being used.
The text was updated successfully, but these errors were encountered: