René's URL Explorer Experiment


Title: [mypy] Annotate other/lru_cache and other/lfu_cache by spazm · Pull Request #5755 · TheAlgorithms/Python · GitHub

Open Graph Title: [mypy] Annotate other/lru_cache and other/lfu_cache by spazm · Pull Request #5755 · TheAlgorithms/Python

X Title: [mypy] Annotate other/lru_cache and other/lfu_cache by spazm · Pull Request #5755 · TheAlgorithms/Python

Description: All Algorithms implemented in Python. Contribute to TheAlgorithms/Python development by creating an account on GitHub.

Open Graph Description: Describe your change: Annotation and improvements for lru_cache and lfu_cache. These contain a lot of duplicated code so I have put them into a single PR. Annotates existing lru_cache algorithm ...

X Description: Describe your change: Annotation and improvements for lru_cache and lfu_cache. These contain a lot of duplicated code so I have put them into a single PR. Annotates existing lru_cache algorithm ...

Opengraph URL: https://github.com/TheAlgorithms/Python/pull/5755

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:560a6b0e-84da-e071-e896-792b014db3ee
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9FBA:269996:26FC207:3377FE5:6A5CC33D
html-safe-nonce6d2532ca742998f8ec9fdeb06494dab5d93e62d9fc48f0a243b105670ac1cc1e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkJBOjI2OTk5NjoyNkZDMjA3OjMzNzdGRTU6NkE1Q0MzM0QiLCJ2aXNpdG9yX2lkIjoiMTMyMTg0ODA0NjIyNjI5MzU2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac13bc0795f935b1d7d912b18c93bb5c73377a953ecce6c29cdf9002e919183cf4
hovercard-subject-tagpull_request:771850569
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/TheAlgorithms/Python/pull/5755/commits
twitter:imagehttps://opengraph.githubassets.com/3c5250777af9a17a6f15748d1f3c719517c61430142ababdd43efec8948de84e/TheAlgorithms/Python/pull/5755
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3c5250777af9a17a6f15748d1f3c719517c61430142ababdd43efec8948de84e/TheAlgorithms/Python/pull/5755
og:image:altDescribe your change: Annotation and improvements for lru_cache and lfu_cache. These contain a lot of duplicated code so I have put them into a single PR. Annotates existing lru_cache algorithm ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamespazm
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-cache
go-importgithub.com/TheAlgorithms/Python git https://github.com/TheAlgorithms/Python.git
octolytics-dimension-user_id20487725
octolytics-dimension-user_loginTheAlgorithms
octolytics-dimension-repository_id63476337
octolytics-dimension-repository_nwoTheAlgorithms/Python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id63476337
octolytics-dimension-repository_network_root_nwoTheAlgorithms/Python
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/TheAlgorithms/Python/pull/5755/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F5755%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2FTheAlgorithms%2FPython%2Fpull%2F5755%2Fcommits
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%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=TheAlgorithms%2FPython
Reloadhttps://github.com/TheAlgorithms/Python/pull/5755/commits
Reloadhttps://github.com/TheAlgorithms/Python/pull/5755/commits
Reloadhttps://github.com/TheAlgorithms/Python/pull/5755/commits
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/5755/commits
TheAlgorithms https://github.com/TheAlgorithms
Pythonhttps://github.com/TheAlgorithms/Python
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/5755/commits
Notifications https://github.com/login?return_to=%2FTheAlgorithms%2FPython
Fork 50.9k https://github.com/login?return_to=%2FTheAlgorithms%2FPython
Star 223k https://github.com/login?return_to=%2FTheAlgorithms%2FPython
Code https://github.com/TheAlgorithms/Python
Issues 141 https://github.com/TheAlgorithms/Python/issues
Pull requests 876 https://github.com/TheAlgorithms/Python/pulls
Discussions https://github.com/TheAlgorithms/Python/discussions
Actions https://github.com/TheAlgorithms/Python/actions
Projects https://github.com/TheAlgorithms/Python/projects
Wiki https://github.com/TheAlgorithms/Python/wiki
Security and quality 0 https://github.com/TheAlgorithms/Python/security
Insights https://github.com/TheAlgorithms/Python/pulse
Code https://github.com/TheAlgorithms/Python
Issues https://github.com/TheAlgorithms/Python/issues
Pull requests https://github.com/TheAlgorithms/Python/pulls
Discussions https://github.com/TheAlgorithms/Python/discussions
Actions https://github.com/TheAlgorithms/Python/actions
Projects https://github.com/TheAlgorithms/Python/projects
Wiki https://github.com/TheAlgorithms/Python/wiki
Security and quality https://github.com/TheAlgorithms/Python/security
Insights https://github.com/TheAlgorithms/Python/pulse
cclausshttps://github.com/cclauss
TheAlgorithms:masterhttps://github.com/TheAlgorithms/Python/tree/master
spazm:mypy-fix-other-lru_cachehttps://github.com/spazm/Python/tree/mypy-fix-other-lru_cache
Conversationhttps://github.com/TheAlgorithms/Python/pull/5755
Commits14 (14)https://github.com/TheAlgorithms/Python/pull/5755/commits
Checkshttps://github.com/TheAlgorithms/Python/pull/5755/checks
Files changedhttps://github.com/TheAlgorithms/Python/pull/5755/files
[mypy] Annotate other/lru_cache and other/lfu_cachehttps://github.com/TheAlgorithms/Python/pull/5755/commits#top
cclausshttps://github.com/cclauss
TheAlgorithms:masterhttps://github.com/TheAlgorithms/Python/tree/master
spazm:mypy-fix-other-lru_cachehttps://github.com/spazm/Python/tree/mypy-fix-other-lru_cache
Adds repr and doctest of current behavior linkedlist in other/lru_cachehttps://github.com/TheAlgorithms/Python/pull/5755/commits/69054ba73c27a2e47b85d48e05ccb615bb35681f
https://github.com/spazm
spazmhttps://github.com/TheAlgorithms/Python/commits?author=spazm
69054bahttps://github.com/TheAlgorithms/Python/pull/5755/commits/69054ba73c27a2e47b85d48e05ccb615bb35681f
https://github.com/TheAlgorithms/Python/tree/69054ba73c27a2e47b85d48e05ccb615bb35681f
Blocks removal of head or tail of double linked listhttps://github.com/TheAlgorithms/Python/pull/5755/commits/db3a7b62412dcbdc5cb8131d80dd6f2de84840eb
https://github.com/spazm
spazmhttps://github.com/TheAlgorithms/Python/commits?author=spazm
db3a7b6https://github.com/TheAlgorithms/Python/pull/5755/commits/db3a7b62412dcbdc5cb8131d80dd6f2de84840eb
https://github.com/TheAlgorithms/Python/tree/db3a7b62412dcbdc5cb8131d80dd6f2de84840eb
clarifies add() logic for double linked list in other/lru_cachehttps://github.com/TheAlgorithms/Python/pull/5755/commits/91effc8611a16790385589e4a39ac1f04d32390c
https://github.com/spazm
spazmhttps://github.com/TheAlgorithms/Python/commits?author=spazm
91effc8https://github.com/TheAlgorithms/Python/pull/5755/commits/91effc8611a16790385589e4a39ac1f04d32390c
https://github.com/TheAlgorithms/Python/tree/91effc8611a16790385589e4a39ac1f04d32390c
expands doctests to compare cache and lru cachehttps://github.com/TheAlgorithms/Python/pull/5755/commits/8e15ab0389934c0ff80ee592d3105c9ea1b682d5
https://github.com/spazm
spazmhttps://github.com/TheAlgorithms/Python/commits?author=spazm
8e15ab0https://github.com/TheAlgorithms/Python/pull/5755/commits/8e15ab0389934c0ff80ee592d3105c9ea1b682d5
https://github.com/TheAlgorithms/Python/tree/8e15ab0389934c0ff80ee592d3105c9ea1b682d5
[mypy] annotates vars for other/lru_cachehttps://github.com/TheAlgorithms/Python/pull/5755/commits/2e177f4f7b6626d1a34b19c374116ae2c4ae305d
https://github.com/spazm
spazmhttps://github.com/TheAlgorithms/Python/commits?author=spazm
2e177f4https://github.com/TheAlgorithms/Python/pull/5755/commits/2e177f4f7b6626d1a34b19c374116ae2c4ae305d
https://github.com/TheAlgorithms/Python/tree/2e177f4f7b6626d1a34b19c374116ae2c4ae305d
[mypy] Annotates lru_cache decorator for other/lru_cachehttps://github.com/TheAlgorithms/Python/pull/5755/commits/186606026355fd4bf92980dd30b0a4f3dccd3b2f
https://github.com/spazm
spazmhttps://github.com/TheAlgorithms/Python/commits?author=spazm
1866060https://github.com/TheAlgorithms/Python/pull/5755/commits/186606026355fd4bf92980dd30b0a4f3dccd3b2f
https://github.com/TheAlgorithms/Python/tree/186606026355fd4bf92980dd30b0a4f3dccd3b2f
[mypy] Makes LRU_Cache generic over key and value types for other/lru_cachehttps://github.com/TheAlgorithms/Python/pull/5755/commits/90cfe2d07316a995c4525df788e2df57a31fcf7a
https://github.com/spazm
spazmhttps://github.com/TheAlgorithms/Python/commits?author=spazm
90cfe2dhttps://github.com/TheAlgorithms/Python/pull/5755/commits/90cfe2d07316a995c4525df788e2df57a31fcf7a
https://github.com/TheAlgorithms/Python/tree/90cfe2d07316a995c4525df788e2df57a31fcf7a
[mypy] makes decorator a classmethod for access to class generic typeshttps://github.com/TheAlgorithms/Python/pull/5755/commits/a5b7b6292a691b94eb19fc2d18e51f869c259f7d
https://github.com/spazm
spazmhttps://github.com/TheAlgorithms/Python/commits?author=spazm
a5b7b62https://github.com/TheAlgorithms/Python/pull/5755/commits/a5b7b6292a691b94eb19fc2d18e51f869c259f7d
https://github.com/TheAlgorithms/Python/tree/a5b7b6292a691b94eb19fc2d18e51f869c259f7d
breaks two long lines in doctest for other/lru_cachehttps://github.com/TheAlgorithms/Python/pull/5755/commits/ef4401f1d11b8e1b3fe85348a8ba00277fe61fb8
https://github.com/spazm
spazmhttps://github.com/TheAlgorithms/Python/commits?author=spazm
ef4401fhttps://github.com/TheAlgorithms/Python/pull/5755/commits/ef4401f1d11b8e1b3fe85348a8ba00277fe61fb8
https://github.com/TheAlgorithms/Python/tree/ef4401f1d11b8e1b3fe85348a8ba00277fe61fb8
simplifies boundary test remove() for other/lru_cachehttps://github.com/TheAlgorithms/Python/pull/5755/commits/895637f7030b1050f4a840b41fd133d33fc7ae48
https://github.com/spazm
spazmhttps://github.com/TheAlgorithms/Python/commits?author=spazm
895637fhttps://github.com/TheAlgorithms/Python/pull/5755/commits/895637f7030b1050f4a840b41fd133d33fc7ae48
https://github.com/TheAlgorithms/Python/tree/895637f7030b1050f4a840b41fd133d33fc7ae48
[mypy] Annotates, adds doctests, and makes Generic other/lfu_cachehttps://github.com/TheAlgorithms/Python/pull/5755/commits/8b6fa2e50a3de8202d6cdafdd6ece3384dbb06d2
https://github.com/spazm
spazmhttps://github.com/TheAlgorithms/Python/commits?author=spazm
8b6fa2ehttps://github.com/TheAlgorithms/Python/pull/5755/commits/8b6fa2e50a3de8202d6cdafdd6ece3384dbb06d2
https://github.com/TheAlgorithms/Python/tree/8b6fa2e50a3de8202d6cdafdd6ece3384dbb06d2
[mypy] annotates cls var in other/lfu_cachehttps://github.com/TheAlgorithms/Python/pull/5755/commits/18390e3c1f1b7f8ad628bbf73847ea9eb4b3ac09
https://github.com/spazm
spazmhttps://github.com/TheAlgorithms/Python/commits?author=spazm
18390e3https://github.com/TheAlgorithms/Python/pull/5755/commits/18390e3c1f1b7f8ad628bbf73847ea9eb4b3ac09
https://github.com/TheAlgorithms/Python/tree/18390e3c1f1b7f8ad628bbf73847ea9eb4b3ac09
cleans up items from code review for lfu_cache and lru_cachehttps://github.com/TheAlgorithms/Python/pull/5755/commits/1e97d44db80849dc9682c4f25fba5541c20d5736
https://github.com/spazm
spazmhttps://github.com/TheAlgorithms/Python/commits?author=spazm
1e97d44https://github.com/TheAlgorithms/Python/pull/5755/commits/1e97d44db80849dc9682c4f25fba5541c20d5736
https://github.com/TheAlgorithms/Python/tree/1e97d44db80849dc9682c4f25fba5541c20d5736
[mypy] runs mypy on lfu_cache and lru_cachehttps://github.com/TheAlgorithms/Python/pull/5755/commits/6de578adabb1ba122cfbe3f49b2d8fa816a759da
https://github.com/spazm
spazmhttps://github.com/TheAlgorithms/Python/commits?author=spazm
6de578ahttps://github.com/TheAlgorithms/Python/pull/5755/commits/6de578adabb1ba122cfbe3f49b2d8fa816a759da
https://github.com/TheAlgorithms/Python/tree/6de578adabb1ba122cfbe3f49b2d8fa816a759da
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.