konradhalas / dacite

Simple creation of data classes from dictionaries.
MIT License
1.72k 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 5 months ago

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