PyCharm code completion on an lxml object shows no functions?

Viewed 21

When I execute the Python code below:

from lxml import etree

parser = etree.XMLParser(remove_blank_text=True)

schema = etree.parse("C:/Users/bart/Documents/Python/FUF/shortFormasaSchema.xml")

pprint(schema)
pprint(type(schema))

The output is

C:\Users\bart\PycharmProjects\formasaUnfolder\venv\Scripts\python.exe C:/Users/bart/PycharmProjects/formasaUnfolder/minimal.py 
<lxml.etree._ElementTree object at 0x000002941F4EC600>
<class 'lxml.etree._ElementTree'>

Process finished with exit code 0

so schema is an <class 'lxml.etree._ElementTree'> but PyCharm does not give me code completion when trying to call a function of schema. See screenshot enter image description here I'm new to Pycharm but worked with intelliJ in a previous life, so I suppose this should be possible? (i'm new to python)

0 Answers
Related