yinwang0 / pysonar2

PySonar2: a semantic indexer for Python with interprocedual type inference

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Element types

notEvil opened this issue · comments

Hi there,

I recognized that in the following code the key and value type of x is not available as well as the element type of y.

x = {}
x[1] = 2 # or
#x.update({1: 2})

y = []
y.append(1)

Imho this should be resolvable.

Those need special treatments. For now I added support for

x = {}
x[1] = 2