PyCQA / baron

IDE allow you to refactor code, Baron allows you to write refactoring code.
http://baron.pycqa.org
GNU Lesser General Public License v3.0
289 stars 50 forks source link

baron failed to parse dict/list expansion #176

Open James4Ever0 opened 1 year ago

James4Ever0 commented 1 year ago

example:

core_topic_set = {
                *flattenUnhashableList(
                    [value for key, value in getMetatopic[dog_or_cat].items()]
                )
            }
s0undt3ch commented 19 hours ago

Another example:

A = [1, 2, 3]
B = [*A, 4, 5, 6]