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
{{ message }}
Repository navigation
Calling dict() on av.dictionary.Dictionary object cause ValueError #2178
Since av.dictionary.Dictionary does not have keys() method, it is treated as Iterable instead of SupportsKeysAndGetItem, and python tries to create dict by iterating av.dictionary.Dictionary (__iter__() yields key only, not key-value pair)
I propose #2179 which implements keys() method and hence solve the problem
Activity
laggykiller commentedon Mar 5, 2026
According to https://github.com/python/typeshed/blob/main/stdlib/builtins.pyi, python builtin
dict()has multiple__init__()methods, notably the following:and
SupportsKeysAndGetItemis defined as:Since
av.dictionary.Dictionarydoes not havekeys()method, it is treated asIterableinstead ofSupportsKeysAndGetItem, and python tries to create dict by iteratingav.dictionary.Dictionary(__iter__()yields key only, not key-value pair)I propose #2179 which implements
keys()method and hence solve the problem