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
and xml/etree/cElementTree.pyi where the error occurs is just
fromxml.etree.ElementTreeimport*
There's no problem reported for xml.etree.ElementTree, and no error if the import in cElementTree is removed. There's also no error if _ElementCallable is redefined to not be recursive.
It seems like pytype is trying to analyze something imported that uses _ElementCallable, encountering the variable name inside that, and then failing because _ElementCallable itself isn't imported and it can't look it up within the context of cElementTree.
The text was updated successfully, but these errors were encountered:
I got a pytype error on my typeshed MR python/typeshed#13349. Here's the relevant pipeline: https://github.com/python/typeshed/actions/runs/12565160822/job/35029069626?pr=13349
The error is:
pytype.pytd.visitors.SymbolLookupError: Couldn't find _ElementCallable in xml.etree.cElementTree
Where
_ElementCallable
is a recursive typealias defined and used inxml/etree/ElementTree.pyi
and
xml/etree/cElementTree.pyi
where the error occurs is justThere's no problem reported for
xml.etree.ElementTree
, and no error if the import incElementTree
is removed. There's also no error if_ElementCallable
is redefined to not be recursive.It seems like pytype is trying to analyze something imported that uses
_ElementCallable
, encountering the variable name inside that, and then failing because_ElementCallable
itself isn't imported and it can't look it up within the context ofcElementTree
.The text was updated successfully, but these errors were encountered: