konradhalas / dacite

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

Check for non empty union matches #233

Open kkg4theweb opened 1 year ago

kkg4theweb commented 1 year ago

Check for non empty union matches before calling union_matches.popitem()[1] - which will otherwise fail with KeyError: 'popitem(): dictionary is empty'

kkg4theweb commented 7 months ago

ping on this ? It is a simple change. Can we get this reviewed and accepted ?