René's URL Explorer Experiment


Title: TypeError on built-ins when using keyword arguments is not found · Issue #5771 · python/typeshed · GitHub

Open Graph Title: TypeError on built-ins when using keyword arguments is not found · Issue #5771 · python/typeshed

X Title: TypeError on built-ins when using keyword arguments is not found · Issue #5771 · python/typeshed

Description: Bug Report Many (most?) built-ins do not take keyword arguments (see Python issue 8706). Nevertheless, mypy does not report about the corresponding TypeError raised at runtime. To Reproduce use a built-in method, e.g. get(), with a keywo...

Open Graph Description: Bug Report Many (most?) built-ins do not take keyword arguments (see Python issue 8706). Nevertheless, mypy does not report about the corresponding TypeError raised at runtime. To Reproduce use a b...

X Description: Bug Report Many (most?) built-ins do not take keyword arguments (see Python issue 8706). Nevertheless, mypy does not report about the corresponding TypeError raised at runtime. To Reproduce use a b...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeError on built-ins when using keyword arguments is not found","articleBody":"\u003c!--\r\n  If you're new to mypy and you're not sure whether what you're experiencing is a mypy bug, please see the \"Question and Help\" form\r\n  instead.\r\n-->\r\n\r\n**Bug Report**\r\n\r\n\u003c!--\r\nNote: If the problem you are reporting is about a specific library function, then the typeshed tracker is better suited\r\nfor this report: https://github.com/python/typeshed/issues\r\n-->\r\n\r\nMany (most?) built-ins do not take keyword arguments (see [Python issue 8706](https://bugs.python.org/issue8706)). Nevertheless, mypy does not report about the corresponding `TypeError` raised at runtime.\r\n\r\n**To Reproduce**\r\n\r\n1. use a built-in method, e.g. `get()`, with a keyword argument\r\n2. run mypy, don't get an error\r\n3. run the program, get a `TypeError`\r\n\r\nMWE:\r\n\r\n```python\r\nmy_dict = dict(a=1)\r\na_value = my_dict.get('b', default='nothing to find')\r\nprint(a_value)\r\n```\r\n\r\n```bash\r\n$ mypy tst.py\r\nSuccess: no issues found in 1 source file\r\n$ python tst.py\r\nTraceback (most recent call last):\r\n  File \"/opt/data/UserWork/hintze/my_work/tst.py\", line 2, in \u003cmodule>\r\n    a_value = my_dict.get('b', default='nothing to find')\r\nTypeError: dict.get() takes no keyword arguments\r\n```\r\n\r\n**Expected Behavior**\r\n\r\n\u003c!--\r\n  How did you expect your project to behave?\r\n  It’s fine if you’re not sure your understanding is correct.\r\n  Write down what you thought would happen. If you just expected no errors, you can delete this section.\r\n-->\r\n\r\nI thought mypy would tell me about the `TypeError`...\r\n\r\n**Actual Behavior**\r\n\r\n\u003c!--\r\n  Did something go wrong?\r\n  Is something broken, or not behaving as you expected?\r\n-->\r\n\r\n...but it didn't.\r\n\r\n**Your Environment**\r\n\r\n\u003c!-- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n- Mypy version used: 0.901\r\n- Mypy command-line flags: None\r\n- Mypy configuration options from `mypy.ini` (and other config files): None\r\n- Python version used: Python 3.9.1\r\n- Operating system and version: [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux\r\n\r\n\u003c!--\r\nYou can freely edit this text, please remove all the lines\r\nyou believe are unnecessary.\r\n-->\r\n","author":{"url":"https://github.com/derhintze","@type":"Person","name":"derhintze"},"datePublished":"2021-07-13T06:50:00Z","url":"https://github.com/python/typeshed/issues/5771"}

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:6a36e33e-5af4-fdf3-0553-2b8d2a9e0164
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id819A:2046A4:FCE18A:1532FC7:6B005C0C
html-safe-noncea2afb4508b7fec94326f0fbcf869ae86b217ce9068a52ccb6c579f0b6f7bd3f5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTlBOjIwNDZBNDpGQ0UxOEE6MTUzMkZDNzo2QjAwNUMwQyIsInZpc2l0b3JfaWQiOiI1MjkwNjIyMzUxNDUxMzgwNzQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd0a1db4f509c3b0862443c19695f87f93837dd666784af9d7848ea9e3f314ca8
hovercard-subject-tagissue:943455104
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/5771/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aa2e8db7cc23bc392418130a296977ccacc65143ae402d504fd95092c7c4ea53/python/typeshed/issues/5771
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aa2e8db7cc23bc392418130a296977ccacc65143ae402d504fd95092c7c4ea53/python/typeshed/issues/5771
og:image:altBug Report Many (most?) built-ins do not take keyword arguments (see Python issue 8706). Nevertheless, mypy does not report about the corresponding TypeError raised at runtime. To Reproduce use a b...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamederhintze
hostnamegithub.com
expected-hostnamegithub.com
None29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73
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
releaseeacd927ba6112e3b01ba99c762bd699a4a4f5df7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typeshed/issues/5771#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F5771
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%2F5771
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/5771
Reloadhttps://github.com/python/typeshed/issues/5771
Reloadhttps://github.com/python/typeshed/issues/5771
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests252 (252)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/5771
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/5771
#5772https://github.com/python/typeshed/pull/5772
TypeError on built-ins when using keyword arguments is not foundhttps://github.com/python/typeshed/issues/5771#top
#5772https://github.com/python/typeshed/pull/5772
https://github.com/derhintze
derhintzehttps://github.com/derhintze
on Jul 13, 2021https://github.com/python/typeshed/issues/5771#issue-943455104
Python issue 8706https://bugs.python.org/issue8706
https://github.com/derhintze
derhintzehttps://github.com/derhintze
on Jul 13, 2021https://github.com/python/typeshed/issues/5771#issuecomment-878826278
https://stackoverflow.com/questions/68322662https://stackoverflow.com/questions/68322662
JelleZijlstrahttps://github.com/JelleZijlstra
python/mypyhttps://github.com/python/mypy
on Jul 13, 2021https://github.com/python/typeshed/issues/5771#event-5014205681
JelleZijlstrahttps://github.com/JelleZijlstra
on Jul 13, 2021https://github.com/python/typeshed/issues/5771#event-5014220422
Make Mapping/MutableMapping params positional-onlyhttps://github.com/python/typeshed/commit/668f9b498db053d977aab226bd89617493dace1e
https://docs.github.com/articles/closing-issues-via-commit-messages
668f9b4https://github.com/python/typeshed/commit/668f9b498db053d977aab226bd89617493dace1e
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Jul 13, 2021https://github.com/python/typeshed/issues/5771#issuecomment-879131937
#5772https://github.com/python/typeshed/pull/5772
srittauhttps://github.com/srittau
completedhttps://github.com/python/typeshed/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#5772https://github.com/python/typeshed/pull/5772
on Nov 18, 2021https://github.com/python/typeshed/issues/5771#event-5636653207
srittauhttps://github.com/srittau
on Nov 18, 2021https://github.com/python/typeshed/issues/5771#event-5636653564
Make Mapping/MutableMapping params positional-only (#5772)https://github.com/python/typeshed/commit/0d7064c357c21572bca5010710f90bc1c86d60e1
#5772https://github.com/python/typeshed/pull/5772
https://docs.github.com/articles/closing-issues-via-commit-messages
0d7064chttps://github.com/python/typeshed/commit/0d7064c357c21572bca5010710f90bc1c86d60e1
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typeshed/issues/5771
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typeshed/issues/5771
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.