Open Carreau opened 2 months ago
Thanks!
@Carreau @davidhalter Can I help with this issue? Let me know if you have any ideas on fixing it.
I think Literal needs special casing here. This is definitely something can and should do. We should however probably try to also catch the case where with_generics does not exist on v
. (Essentially catch the AttributeError)
This is affecting completion of pandas.Series
objects as well.
import pandas as pd
from jedi import Interpreter
series = pd.Series([1,2,3])
code = 'series.'
ns = [{'series': series}]
Interpreter(code, ns).complete()
which raises the same error: AttributeError: 'TreeInstance' object has no attribute 'with_generics'
See upstream issue ipython/ipython#14412, that I was able to reduce to