René's URL Explorer Experiment


Title: lxml missing type annotation for XPath · Issue #525 · python/typeshed · GitHub

Open Graph Title: lxml missing type annotation for XPath · Issue #525 · python/typeshed

X Title: lxml missing type annotation for XPath · Issue #525 · python/typeshed

Description: The following small script from lxml import etree NameXPath = etree.XPath("Name/text()") gives the error test.py:3: error: "module" has no attribute "XPath" which appears to be because the lxml typings are incomplete. I confirmed that th...

Open Graph Description: The following small script from lxml import etree NameXPath = etree.XPath("Name/text()") gives the error test.py:3: error: "module" has no attribute "XPath" which appears to be because the lxml typ...

X Description: The following small script from lxml import etree NameXPath = etree.XPath("Name/text()") gives the error test.py:3: error: "module" has no attribute "XPath" which appe...

Opengraph URL: https://github.com/python/typeshed/issues/525

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lxml missing type annotation for XPath","articleBody":"The following small script\n\n```\nfrom lxml import etree    \nNameXPath = etree.XPath(\"Name/text()\")\n\n```\n\ngives the error\n\n`test.py:3: error: \"module\" has no attribute \"XPath\"`\n\nwhich appears to be because the lxml typings are incomplete.  I confirmed that this source does not mention XPath\n\nhttps://github.com/python/typeshed/blob/master/third_party/3/lxml/etree.pyi\n\nbut I don't know enough about mypy or the types in lxml to propose a patch myself.\n\nI asked a question about this on Stack Overflow (http://stackoverflow.com/questions/39382937/mypy-spurious-error-module-has-no-attribute-xpath-with-etree#39382937) which brought me here.\n","author":{"url":"https://github.com/uglycoyote","@type":"Person","name":"uglycoyote"},"datePublished":"2016-09-08T16:55:20Z","url":"https://github.com/python/typeshed/issues/525"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e2e4d228-d244-9111-0a75-01f3e76c2457
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id960C:29A20E:1F37E02:2A4BD34:6B001602
html-safe-noncefaf613b9f2a73519686ec5173f5512e3c7037ff6c3e74f5f53f908f8fe5f9953
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjBDOjI5QTIwRToxRjM3RTAyOjJBNEJEMzQ6NkIwMDE2MDIiLCJ2aXNpdG9yX2lkIjoiNzU2NDg4ODEyMTE1NDczNzY2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2f2666db7e396496799a33299f01e76c4ab1b8ab4e728d298d3497c45765fc71
hovercard-subject-tagissue:175805858
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typeshed/525/issue_layout
twitter:imagehttps://opengraph.githubassets.com/91b9c682e5d5524865c01a651830722474362912fbce71718070f185f9f9ab9c/python/typeshed/issues/525
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/91b9c682e5d5524865c01a651830722474362912fbce71718070f185f9f9ab9c/python/typeshed/issues/525
og:image:altThe following small script from lxml import etree NameXPath = etree.XPath("Name/text()") gives the error test.py:3: error: "module" has no attribute "XPath" which appears to be because the lxml typ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameuglycoyote
hostnamegithub.com
expected-hostnamegithub.com
Nonea2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4
turbo-cache-controlno-preview
go-importgithub.com/python/typeshed git https://github.com/python/typeshed.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id31696383
octolytics-dimension-repository_nwopython/typeshed
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31696383
octolytics-dimension-repository_network_root_nwopython/typeshed
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release70121d4e855ee0bb7b75cf15d061d91f8863c0f8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typeshed/issues/525#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F525
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F525
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Ftypeshed
Reloadhttps://github.com/python/typeshed/issues/525
Reloadhttps://github.com/python/typeshed/issues/525
Reloadhttps://github.com/python/typeshed/issues/525
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests251 (251)https://github.com/python/typeshed/pulls
Actionshttps://github.com/python/typeshed/actions
Security and qualityhttps://github.com/python/typeshed/security
Insightshttps://github.com/python/typeshed/insights
https://github.com/python/typeshed
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/525
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/525
lxml missing type annotation for XPathhttps://github.com/python/typeshed/issues/525#top
https://github.com/uglycoyote
uglycoyotehttps://github.com/uglycoyote
on Sep 8, 2016https://github.com/python/typeshed/issues/525#issue-175805858
https://github.com/python/typeshed/blob/master/third_party/3/lxml/etree.pyihttps://github.com/python/typeshed/blob/master/third_party/3/lxml/etree.pyi
http://stackoverflow.com/questions/39382937/mypy-spurious-error-module-has-no-attribute-xpath-with-etree#39382937http://stackoverflow.com/questions/39382937/mypy-spurious-error-module-has-no-attribute-xpath-with-etree#39382937
https://github.com/Naruto0
Naruto0https://github.com/Naruto0
on Sep 22, 2016https://github.com/python/typeshed/issues/525#issuecomment-248871196
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Sep 22, 2016https://github.com/python/typeshed/issues/525#issuecomment-248998882
https://github.com/Naruto0
Naruto0https://github.com/Naruto0
on Sep 23, 2016https://github.com/python/typeshed/issues/525#issuecomment-249124915
@uglycoyotehttps://github.com/uglycoyote
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Sep 23, 2016https://github.com/python/typeshed/issues/525#issuecomment-249259364
https://github.com/uglycoyote
uglycoyotehttps://github.com/uglycoyote
on Sep 23, 2016https://github.com/python/typeshed/issues/525#issuecomment-249296373
https://github.com/Naruto0
Naruto0https://github.com/Naruto0
on Oct 4, 2016https://github.com/python/typeshed/issues/525#issuecomment-251412442
gvanrossumhttps://github.com/gvanrossum
help wantedhttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
on Oct 27, 2016https://github.com/python/typeshed/issues/525#event-837987336
https://github.com/underyx
underyxhttps://github.com/underyx
on Nov 8, 2016https://github.com/python/typeshed/issues/525#issuecomment-259088797
@Naruto0https://github.com/Naruto0
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Nov 8, 2016https://github.com/python/typeshed/issues/525#issuecomment-259252571
@Naruto0https://github.com/Naruto0
@underyxhttps://github.com/underyx
https://github.com/underyx
underyxhttps://github.com/underyx
on Nov 8, 2016https://github.com/python/typeshed/issues/525#issuecomment-259259730
https://github.com/uglycoyote
uglycoyotehttps://github.com/uglycoyote
on Nov 8, 2016https://github.com/python/typeshed/issues/525#issuecomment-259276943
http://lxml.de/xpathxslt.html#the-xpath-classhttp://lxml.de/xpathxslt.html#the-xpath-class
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Nov 9, 2016https://github.com/python/typeshed/issues/525#issuecomment-259312436
gvanrossumhttps://github.com/gvanrossum
help wantedhttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
on Apr 30, 2017https://github.com/python/typeshed/issues/525#event-1063484976
https://github.com/timabbott
timabbotthttps://github.com/timabbott
on Oct 8, 2017https://github.com/python/typeshed/issues/525#issuecomment-335032643
zulip/zulip@ec080aehttps://github.com/zulip/zulip/commit/ec080aed6b0fad832b270d6612530cdbcd39a814
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Oct 9, 2017https://github.com/python/typeshed/issues/525#issuecomment-335261218
@JelleZijlstrahttps://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Oct 10, 2017https://github.com/python/typeshed/issues/525#event-1285266659
Recommend against creating incomplete stubshttps://github.com/python/typeshed/commit/0735bd18243e32a7ed762471addc145fcff463b9
0735bd1https://github.com/python/typeshed/commit/0735bd18243e32a7ed762471addc145fcff463b9
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Oct 10, 2017https://github.com/python/typeshed/issues/525#issuecomment-335351805
#1659https://github.com/python/typeshed/pull/1659
gvanrossumhttps://github.com/gvanrossum
on Oct 10, 2017https://github.com/python/typeshed/issues/525#event-1286332865
Recommend against creating incomplete stubs (#1659)https://github.com/python/typeshed/commit/b54a711778367afdf043195c1e2dd53b829e39c1
#1659https://github.com/python/typeshed/pull/1659
b54a711https://github.com/python/typeshed/commit/b54a711778367afdf043195c1e2dd53b829e39c1
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Oct 10, 2017https://github.com/python/typeshed/issues/525#issuecomment-335526572
JelleZijlstrahttps://github.com/JelleZijlstra
on Oct 11, 2017https://github.com/python/typeshed/issues/525#event-1287260650
remove all lxml stubs for nowhttps://github.com/JelleZijlstra/typeshed/commit/9890257624b2a20e9d4276f9eee29882627d263f
https://docs.github.com/articles/closing-issues-via-commit-messages
9890257https://github.com/JelleZijlstra/typeshed/commit/9890257624b2a20e9d4276f9eee29882627d263f
JelleZijlstrahttps://github.com/JelleZijlstra
on Nov 7, 2017https://github.com/python/typeshed/issues/525#event-1328991836
add "type: ignore" to lxml importshttps://github.com/JelleZijlstra/mypy/commit/19507dad3347982b1b49e46df53389ec06d8f967
19507dahttps://github.com/JelleZijlstra/mypy/commit/19507dad3347982b1b49e46df53389ec06d8f967
JukkaLhttps://github.com/JukkaL
on Nov 7, 2017https://github.com/python/typeshed/issues/525#event-1329437408
add "type: ignore" to lxml imports (#4217)https://github.com/python/mypy/commit/3f8ca34ebc4f3d82aef87575a4c4fb26ea66a3b4
#4217https://github.com/python/mypy/pull/4217
3f8ca34https://github.com/python/mypy/commit/3f8ca34ebc4f3d82aef87575a4c4fb26ea66a3b4
gvanrossumhttps://github.com/gvanrossum
completedhttps://github.com/python/typeshed/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1664https://github.com/python/typeshed/pull/1664
on Nov 7, 2017https://github.com/python/typeshed/issues/525#event-1329989985
gvanrossumhttps://github.com/gvanrossum
on Nov 7, 2017https://github.com/python/typeshed/issues/525#event-1329990101
remove all lxml stubs for now (#1664)https://github.com/python/typeshed/commit/735abe68dd8ea19adf568b12e28b7477f15ee6f7
#1664https://github.com/python/typeshed/pull/1664
https://docs.github.com/articles/closing-issues-via-commit-messages
735abe6https://github.com/python/typeshed/commit/735abe68dd8ea19adf568b12e28b7477f15ee6f7
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Nov 7, 2017https://github.com/python/typeshed/issues/525#issuecomment-342546183
https://github.com/JelleZijlstra/lxml-stubshttps://github.com/JelleZijlstra/lxml-stubs
timabbotthttps://github.com/timabbott
on Nov 25, 2017https://github.com/python/typeshed/issues/525#event-1357904378
mypy: Remove type: ignores that are unnecessary with new mypy.https://github.com/zulip/zulip/commit/6968b540c8651848f340db0f6a2e204791b159ca
6968b54https://github.com/zulip/zulip/commit/6968b540c8651848f340db0f6a2e204791b159ca
hswong3ihttps://github.com/hswong3i
on May 25, 2025https://github.com/python/typeshed/issues/525#event-17803769461
Fix third party scheduled tests running on forks (python#525)https://github.com/alvistack/python-typeshed/commit/15d48b2122dbb7124a3c3142222bc4647bb8ef4b
python#525https://github.com/python/typeshed/issues/525
15d48b2https://github.com/alvistack/python-typeshed/commit/15d48b2122dbb7124a3c3142222bc4647bb8ef4b
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typeshed/issues/525
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typeshed/issues/525
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.