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
reportMissingModuleSource means that Pylance found the type stub for the module (xml.pyi) but couldn't find the implementation. See the documentation of reportMissingModuleSource.
This is happening because the implementation of py.xml is generated dynamically via `_xmlgen.py'.
As a static analysis tool that doesn't execute Python code, we don't have a good way to handle dynamic behavior of this sort.
Environment
Windows 10
Pylance v2022.2.0
Python v2022.0.1814523869
Pytest BDD v0.3.17
Python 3.10.2 with venv
The following code reports a problem in VSCode
from py.xml import html
In 'normal' python the following appears to work correctly
from py.xml import html
print ( html.th('Ticket'))
Which prints the following
TicketThe version of py listed by pip is
py 1.11.0
The text was updated successfully, but these errors were encountered: