René's URL Explorer Experiment


Title: type hint: how should type of lru_cache be defined? · Issue #5107 · python/mypy · GitHub

Open Graph Title: type hint: how should type of lru_cache be defined? · Issue #5107 · python/mypy

X Title: type hint: how should type of lru_cache be defined? · Issue #5107 · python/mypy

Description: Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.

Open Graph Description: Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.

X Description: Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.

Opengraph URL: https://github.com/python/mypy

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"type hint: how should type of lru_cache be defined?","articleBody":"Note: if you are reporting a wrong signature of a function or a class in\r\nthe standard library, then the typeshed tracker is better suited\r\nfor this report: https://github.com/python/typeshed/issues\r\n\r\nPlease provide more information to help us understand the issue:\r\n\r\n* Are you reporting a bug, or opening a feature request? bug\r\n* Please insert below the code you are checking with mypy,\r\n  or a mock-up repro if the source is private. We would appreciate\r\n  if you try to simplify your case to a minimal repro.\r\n\r\n```python\r\n@lru_cache(maxsize=1)\r\ndef get_response_from_api() -> List[ApiObject]:\r\n    url = _get_api_url()\r\n    response = requests.get(url).text\r\n    return json.loads(response, object_hook=_create_api_obj)\r\n```\r\n* What is the actual behavior/output?\r\n> error: Untyped decorator makes function \"get_response_from_api\" untyped\r\n* What is the behavior/output you expect?\r\nit should not emit an error, alternatively there should be instructions what to do.\r\n\r\n* What are the versions of mypy and Python you are using?\r\nmypy 0.600\r\npython 3.6.5\r\n  Do you see the same issue after installing mypy from Git master? did not try\r\n\r\n* What are the mypy flags you are using? (For example --strict-optional)\r\nmypy predictor --ignore-missing-imports --strict\r\n* If mypy crashed with a traceback, please paste\r\n  the full traceback below.\r\n\r\nAlso asked in SO: https://stackoverflow.com/questions/50495759/type-hint-how-should-type-of-lru-cache-be-defined\r\n\r\n\r\n","author":{"url":"https://github.com/david-gang","@type":"Person","name":"david-gang"},"datePublished":"2018-05-24T07:40:17Z","url":"https://github.com/python/mypy/issues/5107"}

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/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:89615d4f-dfe8-cf90-eb54-ce224ae183f2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEBEA:30501:2B4F5C:3AF72A:6B00263A
html-safe-nonce141b6fda8c4006940442ce01d7ccf5356669c876e16201ad12c316868385958e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkVBOjMwNTAxOjJCNEY1QzozQUY3MkE6NkIwMDI2M0EiLCJ2aXNpdG9yX2lkIjoiMjgxNDkyOTE5OTc1MDQ1Njg5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc5d25c716d998ad876c28334c8e78e33a83501125a825f0a67b3b00e7b6048f3
hovercard-subject-tagrepository:7053637
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/mypy/issues/5107
twitter:imagehttps://opengraph.githubassets.com/f79ae5636353a0db17350af0a02700f2e9c3bbcf096f9450bf0c369c77cd1022/python/mypy
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f79ae5636353a0db17350af0a02700f2e9c3bbcf096f9450bf0c369c77cd1022/python/mypy
og:image:altOptional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
turbo-cache-controlno-cache
go-importgithub.com/python/mypy git https://github.com/python/mypy.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id7053637
octolytics-dimension-repository_nwopython/mypy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7053637
octolytics-dimension-repository_network_root_nwopython/mypy
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
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/mypy/issues/5107#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F5107
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%2Fmypy%2Fissues%2F5107
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=python%2Fmypy
Reloadhttps://github.com/python/mypy/issues/5107
Reloadhttps://github.com/python/mypy/issues/5107
Reloadhttps://github.com/python/mypy/issues/5107
https://github.com/python/mypy
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/5107
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/5107
type hint: how should type of lru_cache be defined?https://github.com/python/mypy/issues/5107#top
featurehttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22feature%22
priority-2-lowhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-2-low%22
https://github.com/david-gang
david-ganghttps://github.com/david-gang
on May 24, 2018https://github.com/python/mypy/issues/5107#issue-326000001
https://github.com/python/typeshed/issueshttps://github.com/python/typeshed/issues
https://stackoverflow.com/questions/50495759/type-hint-how-should-type-of-lru-cache-be-definedhttps://stackoverflow.com/questions/50495759/type-hint-how-should-type-of-lru-cache-be-defined
https://github.com/emmatyping
emmatypinghttps://github.com/emmatyping
on May 24, 2018https://github.com/python/mypy/issues/5107#issuecomment-391622049
variadic function parametershttps://github.com/python/typing/issues/193
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on May 24, 2018https://github.com/python/mypy/issues/5107#issuecomment-391741665
emmatypinghttps://github.com/emmatyping
featurehttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22feature%22
priority-2-lowhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-2-low%22
on May 27, 2018https://github.com/python/mypy/issues/5107#event-1648124718
https://github.com/ssbarnea
ssbarneahttps://github.com/ssbarnea
on Sep 8, 2019https://github.com/python/mypy/issues/5107#issuecomment-529196961
one function to checkhttps://github.com/ansible/molecule/blob/master/molecule/api.py#L30
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Sep 9, 2019https://github.com/python/mypy/issues/5107#issuecomment-529372406
https://github.com/OJFord
OJFordhttps://github.com/OJFord
on Feb 19, 2020https://github.com/python/mypy/issues/5107#issuecomment-588287050
https://github.com/asottile
asottilehttps://github.com/asottile
on Mar 23, 2020https://github.com/python/mypy/issues/5107#issuecomment-602888462
python/typeshed#3880https://github.com/python/typeshed/pull/3880
https://github.com/EldarSehayekZenity
EldarSehayekZenityhttps://github.com/EldarSehayekZenity
on Feb 17, 2022https://github.com/python/mypy/issues/5107#issuecomment-1043568736
ssbarneahttps://github.com/ssbarnea
on Jul 16, 2022https://github.com/python/mypy/issues/5107#event-7006140988
Avoided lru_cache due mypy problemshttps://github.com/ansible-community/molecule-docker/commit/ee63b5355ee1a8bc7a634a61531b1f77a9d5815a
ee63b53https://github.com/ansible-community/molecule-docker/commit/ee63b5355ee1a8bc7a634a61531b1f77a9d5815a
Avoided lru_cache due mypy problemshttps://github.com/ansible-community/molecule-docker/commit/62f1b3c86edb7b71aab371298a07f45e94b6bb46
62f1b3chttps://github.com/ansible-community/molecule-docker/commit/62f1b3c86edb7b71aab371298a07f45e94b6bb46
Avoided lru_cache due mypy problemshttps://github.com/ansible-community/molecule-docker/commit/785e91b44f618bdaf6c313866125bc48c35357bf
785e91bhttps://github.com/ansible-community/molecule-docker/commit/785e91b44f618bdaf6c313866125bc48c35357bf
[pre-commit.ci] pre-commit autoupdate (#142)https://github.com/ansible-community/molecule-docker/commit/cfa2a75af2a96526a324b12bc122852f775a72cf
#142https://github.com/ansible-community/molecule-docker/pull/142
cfa2a75https://github.com/ansible-community/molecule-docker/commit/cfa2a75af2a96526a324b12bc122852f775a72cf
https://github.com/JakeSummers
JakeSummershttps://github.com/JakeSummers
on Sep 28, 2022https://github.com/python/mypy/issues/5107#issuecomment-1261006557
https://github.com/chadrik
chadrikhttps://github.com/chadrik
on Dec 17, 2022https://github.com/python/mypy/issues/5107#issuecomment-1355954910
@gvanrossumhttps://github.com/gvanrossum
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Dec 17, 2022https://github.com/python/mypy/issues/5107#issuecomment-1356035906
https://github.com/chadrik
chadrikhttps://github.com/chadrik
on Dec 17, 2022https://github.com/python/mypy/issues/5107#issuecomment-1356365403
https://github.com/JotaRata
JotaRatahttps://github.com/JotaRata
on Aug 19, 2023https://github.com/python/mypy/issues/5107#issuecomment-1684619420
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Aug 19, 2023https://github.com/python/mypy/issues/5107#issuecomment-1685026596
JelleZijlstrahttps://github.com/JelleZijlstra
not plannedhttps://github.com/python/mypy/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Aug 19, 2023https://github.com/python/mypy/issues/5107#event-10136490050
https://github.com/gandhis1
gandhis1https://github.com/gandhis1
on Aug 1, 2024https://github.com/python/mypy/issues/5107#issuecomment-2264236790
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/mypy/issues/5107
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/mypy/issues/5107
featurehttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22feature%22
priority-2-lowhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-2-low%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.