Content-Length: 213479 | pFad | http://github.com/python/typeshed/issues/14036

5C `xml.etree.ElementTree` stubs often use Element when they should use `Element[Any]` · Issue #14036 · python/typeshed · GitHub
Skip to content

xml.etree.ElementTree stubs often use Element when they should use Element[Any] #14036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JelleZijlstra opened this issue May 13, 2025 · 0 comments · May be fixed by #14198
Open

xml.etree.ElementTree stubs often use Element when they should use Element[Any] #14036

JelleZijlstra opened this issue May 13, 2025 · 0 comments · May be fixed by #14198

Comments

@JelleZijlstra
Copy link
Member

The stubs for xml.etree.ElementTree often use just Element, which due to a TypeVar default is equivalent to Element[str]. But many of those functions probably actually work with any Element, so we should be using Element[Any] instead.

(From astral-sh/ty#336 (comment) .)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/python/typeshed/issues/14036

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy