diff --git a/dynamic.py b/dynamic.py index ea1a903e..33f6608b 100644 --- a/dynamic.py +++ b/dynamic.py @@ -113,7 +113,7 @@ def search_params(param): def check_array_additions(array): """ Just a mapper function for the internal _check_array_additions """ - if array._array.type not in ['list', 'tuple']: + if array._array.type not in ['list', 'set']: # TODO also check for dict updates return [] diff --git a/test/completion/dynamic.py b/test/completion/dynamic.py index e8f6d4a0..b33ef307 100644 --- a/test/completion/dynamic.py +++ b/test/completion/dynamic.py @@ -196,13 +196,13 @@ arr2.append('') arr2[0] -st = {} +st = {1.0} st.add(1) lst = list(st) lst.append('') -#? int() str() +#? float() int() str() lst[0] lst = [1]