René's URL Explorer Experiment


Title: Enable Ruff PLR (Pylint Refactor) by Avasam · Pull Request #13307 · python/typeshed · GitHub

Open Graph Title: Enable Ruff PLR (Pylint Refactor) by Avasam · Pull Request #13307 · python/typeshed

X Title: Enable Ruff PLR (Pylint Refactor) by Avasam · Pull Request #13307 · python/typeshed

Description: Collection of library stubs for Python, with static types - Enable Ruff PLR (Pylint Refactor) by Avasam · Pull Request #13307 · python/typeshed

Open Graph Description: Ref #13295 https://docs.astral.sh/ruff/rules/#refactor-r There's a few nice automated fixes between more concise conditions and imports. magic-value-comparison (PLR2004) is a harder call. It fo...

X Description: Ref #13295 https://docs.astral.sh/ruff/rules/#refactor-r There's a few nice automated fixes between more concise conditions and imports. magic-value-comparison (PLR2004) is a harder call. I...

Opengraph URL: https://github.com/python/typeshed/pull/13307

X: @github

direct link

Domain: github.com

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:ac6d6c15-1222-f9c9-290d-ad8610440d86
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD548:3204C8:2804D86:344654D:6B00042F
html-safe-noncec3967c360b309c299f035c76ea639f37c5d5f9b2075aa2d53bde61cbb634bd82
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTQ4OjMyMDRDODoyODA0RDg2OjM0NDY1NEQ6NkIwMDA0MkYiLCJ2aXNpdG9yX2lkIjoiMzY1NDQzMTY3NjQ1NDQwNTE2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac90f37050cb5cfa524b899b422b71457719d6f40c93eef4e7eeb38675a3c5ef23
hovercard-subject-tagpull_request:2252758406
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/typeshed/13307/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/4a32dfa757faa23666f9b55b9ed211956140ae37eb0952f25b3c68f08c1cabfe/python/typeshed/pull/13307
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4a32dfa757faa23666f9b55b9ed211956140ae37eb0952f25b3c68f08c1cabfe/python/typeshed/pull/13307
og:image:altRef #13295 https://docs.astral.sh/ruff/rules/#refactor-r There's a few nice automated fixes between more concise conditions and imports. magic-value-comparison (PLR2004) is a harder call. It fo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAvasam
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
turbo-cache-controlno-cache
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
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/typeshed/pull/13307#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F13307
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%2Fpull%2F13307
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Ftypeshed
Reloadhttps://github.com/python/typeshed/pull/13307
Reloadhttps://github.com/python/typeshed/pull/13307
Reloadhttps://github.com/python/typeshed/pull/13307
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
srittauhttps://github.com/srittau
python:mainhttps://github.com/python/typeshed/tree/main
Avasam:Ruff-PLRhttps://github.com/Avasam/typeshed/tree/Ruff-PLR
Conversationhttps://github.com/python/typeshed/pull/13307
Commits14 (14)https://github.com/python/typeshed/pull/13307/commits
Checkshttps://github.com/python/typeshed/pull/13307/checks
Files changedhttps://github.com/python/typeshed/pull/13307/files
Enable Ruff PLR (Pylint Refactor)https://github.com/python/typeshed/pull/13307#top
srittauhttps://github.com/srittau
python:mainhttps://github.com/python/typeshed/tree/main
Avasam:Ruff-PLRhttps://github.com/Avasam/typeshed/tree/Ruff-PLR
https://github.com/Avasam
Avasamhttps://github.com/Avasam
Dec 26, 2024https://github.com/python/typeshed/pull/13307#issue-2760139756
#13295https://github.com/python/typeshed/issues/13295
https://docs.astral.sh/ruff/rules/#refactor-rhttps://docs.astral.sh/ruff/rules/#refactor-r
magic-value-comparison (PLR2004)https://docs.astral.sh/ruff/rules/magic-value-comparison/#magic-value-comparison-plr2004
astral-sh/ruff#10009https://github.com/astral-sh/ruff/issues/10009
Please reload this pagehttps://github.com/python/typeshed/pull/13307
Avasamhttps://github.com/Avasam
December 26, 2024 15:47https://github.com/python/typeshed/pull/13307#commits-pushed-2de94a9
https://github.com/Avasam
Enable PLR (automated fixes)https://github.com/python/typeshed/pull/13307/commits/2de94a9edce68cbad930f8ec67cbf1f280ae69b3
2de94a9https://github.com/python/typeshed/pull/13307/commits/2de94a9edce68cbad930f8ec67cbf1f280ae69b3
https://github.com/Avasam
Use HTTPStatus instead of magic numbershttps://github.com/python/typeshed/pull/13307/commits/a10f1eb7656ed98752a55c9faf8c91924dc57ae5
a10f1ebhttps://github.com/python/typeshed/pull/13307/commits/a10f1eb7656ed98752a55c9faf8c91924dc57ae5
https://github.com/Avasam
noqa: PLR2004 for Literal[2]https://github.com/python/typeshed/pull/13307/commits/25efb0f920c6e65618054f4250df6a6b60bafc6b
25efb0fhttps://github.com/python/typeshed/pull/13307/commits/25efb0f920c6e65618054f4250df6a6b60bafc6b
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F13307
https://github.com/Avasam
Merge branch 'main' into Ruff-PLRhttps://github.com/python/typeshed/pull/13307/commits/0ba3f02474fdd3fc57070d8598f2bcea14820702
0ba3f02https://github.com/python/typeshed/pull/13307/commits/0ba3f02474fdd3fc57070d8598f2bcea14820702
https://github.com/Avasam
Avasamhttps://github.com/Avasam
Dec 26, 2024https://github.com/python/typeshed/pull/13307#event-15768243671
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F13307
https://github.com/Avasam
Avasamhttps://github.com/Avasam
Dec 29, 2024 https://github.com/python/typeshed/pull/13307#ref-issue-2758273712
Applying more Ruff groups to this repository #13295 https://github.com/python/typeshed/issues/13295
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 2, 2025 https://github.com/python/typeshed/pull/13307#pullrequestreview-2528274929
View reviewed changes https://github.com/python/typeshed/pull/13307/files/0ba3f02474fdd3fc57070d8598f2bcea14820702
scripts/stubsabot.pyhttps://github.com/python/typeshed/pull/13307/files/0ba3f02474fdd3fc57070d8598f2bcea14820702#diff-d11170d18a48b3b03315425963aaba1cf9b7ac91af9488f4e0416a9d9a42bd29
Please reload this pagehttps://github.com/python/typeshed/pull/13307
Avasamhttps://github.com/Avasam
January 2, 2025 17:10https://github.com/python/typeshed/pull/13307#commits-pushed-08f358c
https://github.com/Avasam
Merge branch 'main' ofhttps://github.com/python/typeshed/pull/13307/commits/08f358c569681ad45d051a759bc6b2368c26c402
https://github.com/python/typeshedhttps://github.com/python/typeshed
into Ruff-PLRhttps://github.com/python/typeshed/pull/13307/commits/08f358c569681ad45d051a759bc6b2368c26c402
08f358chttps://github.com/python/typeshed/pull/13307/commits/08f358c569681ad45d051a759bc6b2368c26c402
https://github.com/Avasam
ignore PLR2004https://github.com/python/typeshed/pull/13307/commits/9d0891d19c70e6429deb06c93dbba0cdd0615c32
9d0891dhttps://github.com/python/typeshed/pull/13307/commits/9d0891d19c70e6429deb06c93dbba0cdd0615c32
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python/typeshed/pull/13307/commits/fdae3b9b043a5ce9d9309e4296adc2e95aa5315c
fdae3b9https://github.com/python/typeshed/pull/13307/commits/fdae3b9b043a5ce9d9309e4296adc2e95aa5315c
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 2, 2025 https://github.com/python/typeshed/pull/13307#pullrequestreview-2528291172
View reviewed changes https://github.com/python/typeshed/pull/13307/files/fdae3b9b043a5ce9d9309e4296adc2e95aa5315c
stdlib/asyncio/__init__.pyihttps://github.com/python/typeshed/pull/13307/files/fdae3b9b043a5ce9d9309e4296adc2e95aa5315c#diff-07463f3f607d324c7f1c0dbb119fceb0fa1b70ae5e21faad6f2ff40fc176b957
Please reload this pagehttps://github.com/python/typeshed/pull/13307
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F13307
https://github.com/Avasam
noqa huge platform conditionhttps://github.com/python/typeshed/pull/13307/commits/149a46ddc5cd1baa63cbddfa2fea02728e7a7892
149a46dhttps://github.com/python/typeshed/pull/13307/commits/149a46ddc5cd1baa63cbddfa2fea02728e7a7892
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F13307
https://github.com/Avasam
Can't noqa on specific linehttps://github.com/python/typeshed/pull/13307/commits/6a0c84728d0b9289077a7ccee3b473d157dff72d
6a0c847https://github.com/python/typeshed/pull/13307/commits/6a0c84728d0b9289077a7ccee3b473d157dff72d
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F13307
https://github.com/Avasam
Merge branch 'main' into Ruff-PLRhttps://github.com/python/typeshed/pull/13307/commits/a52f9f877b3be602e9d810879bf7cdc27b11a352
a52f9f8https://github.com/python/typeshed/pull/13307/commits/a52f9f877b3be602e9d810879bf7cdc27b11a352
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F13307
https://github.com/srittau
Merge branch 'main' into Ruff-PLRhttps://github.com/python/typeshed/pull/13307/commits/2b7420b1b96674cb747ff16fd5b3fe4d8a7636a8
2b7420bhttps://github.com/python/typeshed/pull/13307/commits/2b7420b1b96674cb747ff16fd5b3fe4d8a7636a8
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F13307
https://github.com/srittau
srittauhttps://github.com/srittau
Feb 27, 2025 https://github.com/python/typeshed/pull/13307#pullrequestreview-2647572437
View reviewed changes https://github.com/python/typeshed/pull/13307/files/2b7420b1b96674cb747ff16fd5b3fe4d8a7636a8
stdlib/mmap.pyihttps://github.com/python/typeshed/pull/13307/files/2b7420b1b96674cb747ff16fd5b3fe4d8a7636a8#diff-c96c6d44c7fbc53f65bddac45d7fa52dbeb5371c605881957addca04af8c454e
Please reload this pagehttps://github.com/python/typeshed/pull/13307
https://github.com/srittau
srittauhttps://github.com/srittau
Feb 27, 2025 https://github.com/python/typeshed/pull/13307#pullrequestreview-2647573239
View reviewed changes https://github.com/python/typeshed/pull/13307/files/2b7420b1b96674cb747ff16fd5b3fe4d8a7636a8
tests/runtests.pyhttps://github.com/python/typeshed/pull/13307/files/2b7420b1b96674cb747ff16fd5b3fe4d8a7636a8#diff-66d5eb80f159f891e9859cd22b3d2cfc9099297d6625407271b98f82c3b6e349
Please reload this pagehttps://github.com/python/typeshed/pull/13307
Avasamhttps://github.com/Avasam
March 1, 2025 23:01https://github.com/python/typeshed/pull/13307#commits-pushed-6127568
https://github.com/Avasam
Merge branch 'main' ofhttps://github.com/python/typeshed/pull/13307/commits/61275688aa1c24fa7027d61e83b457046214669c
https://github.com/python/typeshedhttps://github.com/python/typeshed
into Ruff-PLRhttps://github.com/python/typeshed/pull/13307/commits/61275688aa1c24fa7027d61e83b457046214669c
6127568https://github.com/python/typeshed/pull/13307/commits/61275688aa1c24fa7027d61e83b457046214669c
https://github.com/Avasam
Disable PLR5501https://github.com/python/typeshed/pull/13307/commits/e818e41c0925ee0d161fb1d3ebca22b4f8aad7c6
e818e41https://github.com/python/typeshed/pull/13307/commits/e818e41c0925ee0d161fb1d3ebca22b4f8aad7c6
https://github.com/Avasam
Avasamhttps://github.com/Avasam
srittauhttps://github.com/srittau
March 2, 2025 04:08https://github.com/python/typeshed/pull/13307#event-16524046680
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F13307
https://github.com/srittau
srittauhttps://github.com/srittau
Mar 3, 2025https://github.com/python/typeshed/pull/13307#issuecomment-2694626587
#13306https://github.com/python/typeshed/pull/13306
Please reload this pagehttps://github.com/python/typeshed/pull/13307
https://github.com/srittau
srittauhttps://github.com/srittau
Mar 3, 2025 https://github.com/python/typeshed/pull/13307#pullrequestreview-2654331680
View reviewed changes https://github.com/python/typeshed/pull/13307/files/e818e41c0925ee0d161fb1d3ebca22b4f8aad7c6
https://github.com/Avasam
Merge branch 'main' into Ruff-PLRhttps://github.com/python/typeshed/pull/13307/commits/b6e1770a96df54e294fa381567d2bd3365abe4cc
b6e1770https://github.com/python/typeshed/pull/13307/commits/b6e1770a96df54e294fa381567d2bd3365abe4cc
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Mar 3, 2025https://github.com/python/typeshed/pull/13307#issuecomment-2695009673
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/typeshed/pull/13307
https://github.com/srittau
srittauhttps://github.com/srittau
6f98c59https://github.com/python/typeshed/commit/6f98c59f9388e15b61a1fae77b207ee6a7012b6e
Mar 3, 2025https://github.com/python/typeshed/pull/13307#event-16537842843
https://github.com/Avasam
Avasamhttps://github.com/Avasam
March 3, 2025 20:01https://github.com/python/typeshed/pull/13307#event-16540155358
mmingyuhttps://github.com/mmingyu
May 16, 2025 https://github.com/python/typeshed/pull/13307#ref-commit-d4fb9db
https://github.com/Avasam
Enable Ruff PLR (Pylint Refactor) (https://github.com/mmingyu/typeshed/commit/d4fb9db7a8d159fbb520aba71f6af577a04c66a7
python#13307https://github.com/python/typeshed/pull/13307
)https://github.com/mmingyu/typeshed/commit/d4fb9db7a8d159fbb520aba71f6af577a04c66a7
d4fb9dbhttps://github.com/mmingyu/typeshed/commit/d4fb9db7a8d159fbb520aba71f6af577a04c66a7
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F13307
https://github.com/AlexWaygood
AlexWaygood https://github.com/AlexWaygood
https://github.com/python/typeshed/pull/13307/files/fdae3b9b043a5ce9d9309e4296adc2e95aa5315c
https://github.com/srittau
srittau https://github.com/srittau
https://github.com/python/typeshed/pull/13307/files/e818e41c0925ee0d161fb1d3ebca22b4f8aad7c6
Please reload this pagehttps://github.com/python/typeshed/pull/13307
Please reload this pagehttps://github.com/python/typeshed/pull/13307
https://github.com/Avasam
https://github.com/srittau
https://github.com/AlexWaygood
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.