René's URL Explorer Experiment


Title: Stubs for `filecmp` are missing `Pathlike` for `common` argument · Issue #7034 · python/typeshed · GitHub

Open Graph Title: Stubs for `filecmp` are missing `Pathlike` for `common` argument · Issue #7034 · python/typeshed

X Title: Stubs for `filecmp` are missing `Pathlike` for `common` argument · Issue #7034 · python/typeshed

Description: bug.py: """Demo mypy bug.""" import filecmp from pathlib import Path d = Path.home() filecmp.cmpfiles(d, d, d.glob("*")) mypy bug.py: bug.py:6: error: Value of type variable "AnyStr" of "cmpfiles" cannot be "Path" Found 1 error in 1 file...

Open Graph Description: bug.py: """Demo mypy bug.""" import filecmp from pathlib import Path d = Path.home() filecmp.cmpfiles(d, d, d.glob("*")) mypy bug.py: bug.py:6: error: Value of type variable "AnyStr" of "cmpfiles" ...

X Description: bug.py: """Demo mypy bug.""" import filecmp from pathlib import Path d = Path.home() filecmp.cmpfiles(d, d, d.glob("*")) mypy bug.py: bug.py:6: error: Value ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Stubs for `filecmp` are missing `Pathlike` for `common` argument","articleBody":"`bug.py`:\r\n```python\r\n\"\"\"Demo mypy bug.\"\"\"\r\nimport filecmp\r\nfrom pathlib import Path\r\n\r\nd = Path.home()\r\nfilecmp.cmpfiles(d, d, d.glob(\"*\"))\r\n```\r\n\r\n`mypy bug.py`:\r\n```\r\nbug.py:6: error: Value of type variable \"AnyStr\" of \"cmpfiles\" cannot be \"Path\"\r\nFound 1 error in 1 file (checked 1 source file)\r\n```\r\n\r\nI guess `common` should be `Iterable[AnyStr | PathLike[AnyStr]]`:\r\nhttps://github.com/python/typeshed/blob/7bc9c1625eb0df0500e70de96f3e1a698bb8c05a/stdlib/filecmp.pyi#L16-L18\r\n\r\nRelated: https://github.com/python/typeshed/issues/3858, https://github.com/python/typeshed/pull/3864\r\n","author":{"url":"https://github.com/bersbersbers","@type":"Person","name":"bersbersbers"},"datePublished":"2022-01-25T08:47:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/7034/typeshed/issues/7034"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:bc83da70-c226-368d-2b99-993092d84225
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCEA0:C07BE:33D5A1:451A61:6969C313
html-safe-nonce5fb4c16596aa14509b487394e4be81b27157082b314952d2eb588af4bb5b8b0e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUEwOkMwN0JFOjMzRDVBMTo0NTFBNjE6Njk2OUMzMTMiLCJ2aXNpdG9yX2lkIjoiNzkwNzI5NjUyOTAxMTU1NzEzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac54ff7589b4a2f59347dbf3af3279d4b0cd3d2ca07acf03b626266de91d92c23e
hovercard-subject-tagissue:1113593164
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/7034/issue_layout
twitter:imagehttps://opengraph.githubassets.com/369958198af906b4ad1876ceea768307df417d358d2214194fe7e8f19778dc5c/python/typeshed/issues/7034
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/369958198af906b4ad1876ceea768307df417d358d2214194fe7e8f19778dc5c/python/typeshed/issues/7034
og:image:altbug.py: """Demo mypy bug.""" import filecmp from pathlib import Path d = Path.home() filecmp.cmpfiles(d, d, d.glob("*")) mypy bug.py: bug.py:6: error: Value of type variable "AnyStr" of "cmpfiles" ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebersbersbers
hostnamegithub.com
expected-hostnamegithub.com
Noneacedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056
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
release83c08c21cdda978090dc44364b71aa5bc6dcea79
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/typeshed/issues/7034#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F7034
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F7034
Sign up https://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/7034
Reloadhttps://github.com/python/typeshed/issues/7034
Reloadhttps://github.com/python/typeshed/issues/7034
python https://github.com/python
typeshedhttps://github.com/python/typeshed
Please reload this pagehttps://github.com/python/typeshed/issues/7034
Notifications https://github.com/login?return_to=%2Fpython%2Ftypeshed
Fork 2k https://github.com/login?return_to=%2Fpython%2Ftypeshed
Star 5k https://github.com/login?return_to=%2Fpython%2Ftypeshed
Code https://github.com/python/typeshed
Issues 218 https://github.com/python/typeshed/issues
Pull requests 127 https://github.com/python/typeshed/pulls
Actions https://github.com/python/typeshed/actions
Projects 0 https://github.com/python/typeshed/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/typeshed/security
Please reload this pagehttps://github.com/python/typeshed/issues/7034
Insights https://github.com/python/typeshed/pulse
Code https://github.com/python/typeshed
Issues https://github.com/python/typeshed/issues
Pull requests https://github.com/python/typeshed/pulls
Actions https://github.com/python/typeshed/actions
Projects https://github.com/python/typeshed/projects
Security https://github.com/python/typeshed/security
Insights https://github.com/python/typeshed/pulse
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/7034
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/7034
#7147https://github.com/python/typeshed/pull/7147
Stubs for filecmp are missing Pathlike for common argumenthttps://github.com/python/typeshed/issues/7034#top
#7147https://github.com/python/typeshed/pull/7147
stubs: false positiveType checkers report false errorshttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22stubs%3A%20false%20positive%22
https://github.com/bersbersbers
https://github.com/bersbersbers
bersbersbershttps://github.com/bersbersbers
on Jan 25, 2022https://github.com/python/typeshed/issues/7034#issue-1113593164
typeshed/stdlib/filecmp.pyihttps://github.com/python/typeshed/blob/7bc9c1625eb0df0500e70de96f3e1a698bb8c05a/stdlib/filecmp.pyi#L16-L18
7bc9c16https://github.com/python/typeshed/commit/7bc9c1625eb0df0500e70de96f3e1a698bb8c05a
#3858https://github.com/python/typeshed/issues/3858
#3864https://github.com/python/typeshed/pull/3864
stubs: false positiveType checkers report false errorshttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22stubs%3A%20false%20positive%22
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.