"TypeError: expected Line, got list" in Python. Why!

It is correct?

I have a warning:

File “”, line 57, in
TypeError: expected ReferenceArray, got list