Content-Length: 213479 | pFad | http://github.com/python/typeshed/issues/14036
5Cxml.etree.ElementTree
stubs often use Element when they should use Element[Any]
#14036
Fetched URL: http://github.com/python/typeshed/issues/14036
Alternative Proxies:
The stubs for
xml.etree.ElementTree
often use justElement
, which due to a TypeVar default is equivalent toElement[str]
. But many of those functions probably actually work with any Element, so we should be usingElement[Any]
instead.(From astral-sh/ty#336 (comment) .)
The text was updated successfully, but these errors were encountered: