René's URL Explorer Experiment


Title: Use stacklevel=2 for warnings to report on callsites by rytilahti · Pull Request #1219 · python-kasa/python-kasa · GitHub

Open Graph Title: Use stacklevel=2 for warnings to report on callsites by rytilahti · Pull Request #1219 · python-kasa/python-kasa

X Title: Use stacklevel=2 for warnings to report on callsites by rytilahti · Pull Request #1219 · python-kasa/python-kasa

Description: Use stacklevel=2 for warnings, as this will correctly show the callsite instead of the line where the warning is reported. Thanks to https://www.youtube.com/watch?v=Ljfn4x8t3Ow by @asottile Current...

Open Graph Description: Use stacklevel=2 for warnings, as this will correctly show the callsite instead of the line where the warning is reported. Thanks to https://www.youtube.com/watch?v=Ljfn4x8t3Ow by @asottile Current...

X Description: Use stacklevel=2 for warnings, as this will correctly show the callsite instead of the line where the warning is reported. Thanks to https://www.youtube.com/watch?v=Ljfn4x8t3Ow by @asottile Current...

Opengraph URL: https://github.com/python-kasa/python-kasa/pull/1219

X: @github

direct link

Domain: github.com

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:87e4b5d5-2509-3fe3-2097-5f65a7f7bdff
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id88F2:1331FA:2D4C497:3BEFCEF:6981ADE4
html-safe-nonce3398cb366bcd3af9e98db9693bdabba4a22f0f396471564f45f8d57af2ff4e33
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEYyOjEzMzFGQToyRDRDNDk3OjNCRUZDRUY6Njk4MUFERTQiLCJ2aXNpdG9yX2lkIjoiODc1NTI3NzQ3NzMxNzgxNTc4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac85274e22f17c9af2fa1faac35d469952b524da77098f5f239e51b6b82c206749
hovercard-subject-tagpull_request:2155979419
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-kasa/python-kasa/1219/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ef64206f794535fd413242e51e561ed2993e836d2fcc2e196c6fb71bb6ece057/python-kasa/python-kasa/pull/1219
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ef64206f794535fd413242e51e561ed2993e836d2fcc2e196c6fb71bb6ece057/python-kasa/python-kasa/pull/1219
og:image:altUse stacklevel=2 for warnings, as this will correctly show the callsite instead of the line where the warning is reported. Thanks to https://www.youtube.com/watch?v=Ljfn4x8t3Ow by @asottile Current...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerytilahti
hostnamegithub.com
expected-hostnamegithub.com
Nonee137814e266030874fd2c86863529d0622b13889eeda04148c57654b6ea84ad6
turbo-cache-controlno-preview
go-importgithub.com/python-kasa/python-kasa git https://github.com/python-kasa/python-kasa.git
octolytics-dimension-user_id57733869
octolytics-dimension-user_loginpython-kasa
octolytics-dimension-repository_id221571611
octolytics-dimension-repository_nwopython-kasa/python-kasa
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id221571611
octolytics-dimension-repository_network_root_nwopython-kasa/python-kasa
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
releasedd58d68a7813bbec9c91422c8c35f4af33832d70
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-kasa/python-kasa/pull/1219#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-kasa%2Fpython-kasa%2Fpull%2F1219
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-kasa%2Fpython-kasa%2Fpull%2F1219
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python-kasa%2Fpython-kasa
Reloadhttps://github.com/python-kasa/python-kasa/pull/1219
Reloadhttps://github.com/python-kasa/python-kasa/pull/1219
Reloadhttps://github.com/python-kasa/python-kasa/pull/1219
python-kasa https://github.com/python-kasa
python-kasahttps://github.com/python-kasa/python-kasa
Please reload this pagehttps://github.com/python-kasa/python-kasa/pull/1219
Notifications https://github.com/login?return_to=%2Fpython-kasa%2Fpython-kasa
Fork 246 https://github.com/login?return_to=%2Fpython-kasa%2Fpython-kasa
Star 1.6k https://github.com/login?return_to=%2Fpython-kasa%2Fpython-kasa
Code https://github.com/python-kasa/python-kasa
Issues 51 https://github.com/python-kasa/python-kasa/issues
Pull requests 36 https://github.com/python-kasa/python-kasa/pulls
Discussions https://github.com/python-kasa/python-kasa/discussions
Actions https://github.com/python-kasa/python-kasa/actions
Projects 0 https://github.com/python-kasa/python-kasa/projects
Security 0 https://github.com/python-kasa/python-kasa/security
Insights https://github.com/python-kasa/python-kasa/pulse
Code https://github.com/python-kasa/python-kasa
Issues https://github.com/python-kasa/python-kasa/issues
Pull requests https://github.com/python-kasa/python-kasa/pulls
Discussions https://github.com/python-kasa/python-kasa/discussions
Actions https://github.com/python-kasa/python-kasa/actions
Projects https://github.com/python-kasa/python-kasa/projects
Security https://github.com/python-kasa/python-kasa/security
Insights https://github.com/python-kasa/python-kasa/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-kasa%2Fpython-kasa%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-kasa%2Fpython-kasa%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python-kasa/python-kasa/pull/1219#issue-comment-box
rytilahtihttps://github.com/rytilahti
masterhttps://github.com/python-kasa/python-kasa/tree/master
fix/warn_stacklevelhttps://github.com/python-kasa/python-kasa/tree/fix/warn_stacklevel
Use stacklevel=2 for warnings to report on callsites https://github.com/python-kasa/python-kasa/pull/1219#top
rytilahtihttps://github.com/rytilahti
masterhttps://github.com/python-kasa/python-kasa/tree/master
fix/warn_stacklevelhttps://github.com/python-kasa/python-kasa/tree/fix/warn_stacklevel
Conversation 4 https://github.com/python-kasa/python-kasa/pull/1219
Commits 1 https://github.com/python-kasa/python-kasa/pull/1219/commits
Checks 0 https://github.com/python-kasa/python-kasa/pull/1219/checks
Files changed https://github.com/python-kasa/python-kasa/pull/1219/files
Please reload this pagehttps://github.com/python-kasa/python-kasa/pull/1219
https://github.co/hiddenchars
https://github.com/python-kasa/python-kasa/pull/{{ revealButtonHref }}
https://github.com/rytilahti
rytilahtihttps://github.com/rytilahti
Oct 31, 2024https://github.com/python-kasa/python-kasa/pull/1219#issue-2626518251
https://www.youtube.com/watch?v=Ljfn4x8t3Owhttps://www.youtube.com/watch?v=Ljfn4x8t3Ow
@asottilehttps://github.com/asottile
Please reload this pagehttps://github.com/python-kasa/python-kasa/pull/1219
https://github.com/rytilahti
Use stacklevel=2 for warnings to report on callsiteshttps://github.com/python-kasa/python-kasa/pull/1219/commits/27c41fd74d755df68fe1c6dca84fcdf79bbc46ad
27c41fdhttps://github.com/python-kasa/python-kasa/pull/1219/commits/27c41fd74d755df68fe1c6dca84fcdf79bbc46ad
https://github.com/rytilahti
rytilahtihttps://github.com/rytilahti
maintenance https://github.com/python-kasa/python-kasa/issues?q=state%3Aopen%20label%3Amaintenance
Oct 31, 2024https://github.com/python-kasa/python-kasa/pull/1219#event-15031739920
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Oct 31, 2024https://github.com/python-kasa/python-kasa/pull/1219#issuecomment-2449539030
Please reload this pagehttps://github.com/python-kasa/python-kasa/pull/1219
Codecovhttps://app.codecov.io/gh/python-kasa/python-kasa/pull/1219?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-kasa
(530cf4b)https://app.codecov.io/gh/python-kasa/python-kasa/commit/530cf4b52374d69544689ed512f3116d49889f98?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-kasa
(27c41fd)https://app.codecov.io/gh/python-kasa/python-kasa/commit/27c41fd74d755df68fe1c6dca84fcdf79bbc46ad?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-kasa
Files with missing lineshttps://app.codecov.io/gh/python-kasa/python-kasa/pull/1219?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-kasa
kasa/iot/iotdevice.pyhttps://app.codecov.io/gh/python-kasa/python-kasa/pull/1219?src=pr&el=tree&filepath=kasa%2Fiot%2Fiotdevice.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-kasa#diff-a2FzYS9pb3QvaW90ZGV2aWNlLnB5
1 Missing ⚠️ https://app.codecov.io/gh/python-kasa/python-kasa/pull/1219?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-kasa
☔ View full report in Codecov by Sentryhttps://app.codecov.io/gh/python-kasa/python-kasa/pull/1219?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-kasa
Share it herehttps://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-kasa
Please reload this pagehttps://github.com/python-kasa/python-kasa/pull/1219
https://github.com/sdb9696
sdb9696https://github.com/sdb9696
Oct 31, 2024https://github.com/python-kasa/python-kasa/pull/1219#issuecomment-2449614649
Please reload this pagehttps://github.com/python-kasa/python-kasa/pull/1219
https://github.com/rytilahti
rytilahtihttps://github.com/rytilahti
Oct 31, 2024https://github.com/python-kasa/python-kasa/pull/1219#issuecomment-2449738923
Please reload this pagehttps://github.com/python-kasa/python-kasa/pull/1219
https://github.com/sdb9696
sdb9696https://github.com/sdb9696
Oct 31, 2024 https://github.com/python-kasa/python-kasa/pull/1219#pullrequestreview-2407825928
View reviewed changes https://github.com/python-kasa/python-kasa/pull/1219/files/27c41fd74d755df68fe1c6dca84fcdf79bbc46ad
sdb9696https://github.com/sdb9696
https://github.com/python-kasa/python-kasa/pull/1219#pullrequestreview-2407825928
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python-kasa/python-kasa/pull/1219
https://github.com/rytilahti
rytilahtihttps://github.com/rytilahti
5da41fchttps://github.com/python-kasa/python-kasa/commit/5da41fcc11d7621633424b18b2804803319044a4
Oct 31, 2024https://github.com/python-kasa/python-kasa/pull/1219#event-15035480593
https://github.com/rytilahti
rytilahtihttps://github.com/rytilahti
October 31, 2024 13:12https://github.com/python-kasa/python-kasa/pull/1219#event-15035481013
https://github.com/sdb9696
sdb9696https://github.com/sdb9696
0.7.7https://github.com/python-kasa/python-kasa/milestone/24
Nov 4, 2024https://github.com/python-kasa/python-kasa/pull/1219#event-15106098953
https://github.com/sdb9696
sdb9696https://github.com/sdb9696
Nov 4, 2024 https://github.com/python-kasa/python-kasa/pull/1219#ref-pullrequest-2633186854
Prepare 0.7.7 #1229 https://github.com/python-kasa/python-kasa/pull/1229
sdb9696https://github.com/sdb9696
Nov 4, 2024 https://github.com/python-kasa/python-kasa/pull/1219#ref-commit-331baf6
https://github.com/sdb9696
Prepare 0.7.7 (https://github.com/python-kasa/python-kasa/commit/331baf6bc47808548a5743f49d6b2d2b84128d77
#1229https://github.com/python-kasa/python-kasa/pull/1229
)https://github.com/python-kasa/python-kasa/commit/331baf6bc47808548a5743f49d6b2d2b84128d77
331baf6https://github.com/python-kasa/python-kasa/commit/331baf6bc47808548a5743f49d6b2d2b84128d77
https://github.com/python-kasa/python-kasa/tree/0.7.7https://github.com/python-kasa/python-kasa/tree/0.7.7
0.7.6...0.7.7https://github.com/python-kasa/python-kasa/compare/0.7.6...0.7.7
#1227https://github.com/python-kasa/python-kasa/pull/1227
#1227https://github.com/python-kasa/python-kasa/pull/1227
@rytilahtihttps://github.com/rytilahti
#1210https://github.com/python-kasa/python-kasa/pull/1210
#1210https://github.com/python-kasa/python-kasa/pull/1210
@rytilahtihttps://github.com/rytilahti
#1174https://github.com/python-kasa/python-kasa/pull/1174
#1174https://github.com/python-kasa/python-kasa/pull/1174
@rytilahtihttps://github.com/rytilahti
#1141https://github.com/python-kasa/python-kasa/pull/1141
#1141https://github.com/python-kasa/python-kasa/pull/1141
@rytilahtihttps://github.com/rytilahti
#900https://github.com/python-kasa/python-kasa/pull/900
#900https://github.com/python-kasa/python-kasa/pull/900
@rytilahtihttps://github.com/rytilahti
#1220https://github.com/python-kasa/python-kasa/pull/1220
#1220https://github.com/python-kasa/python-kasa/pull/1220
@sdb9696https://github.com/sdb9696
#1225https://github.com/python-kasa/python-kasa/pull/1225
#1225https://github.com/python-kasa/python-kasa/pull/1225
@rytilahtihttps://github.com/rytilahti
#1224https://github.com/python-kasa/python-kasa/pull/1224
#1224https://github.com/python-kasa/python-kasa/pull/1224
@sdb9696https://github.com/sdb9696
#1223https://github.com/python-kasa/python-kasa/pull/1223
#1223https://github.com/python-kasa/python-kasa/pull/1223
@sdb9696https://github.com/sdb9696
#1222https://github.com/python-kasa/python-kasa/pull/1222
#1222https://github.com/python-kasa/python-kasa/pull/1222
@sdb9696https://github.com/sdb9696
#1219https://github.com/python-kasa/python-kasa/pull/1219
#1219https://github.com/python-kasa/python-kasa/pull/1219
@rytilahtihttps://github.com/rytilahti
#1138https://github.com/python-kasa/python-kasa/pull/1138
#1138https://github.com/python-kasa/python-kasa/pull/1138
@rytilahtihttps://github.com/rytilahti
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-kasa%2Fpython-kasa%2Fpull%2F1219
https://github.com/sdb9696
sdb9696 https://github.com/sdb9696
https://github.com/python-kasa/python-kasa/pull/1219/files/27c41fd74d755df68fe1c6dca84fcdf79bbc46ad
maintenance https://github.com/python-kasa/python-kasa/issues?q=state%3Aopen%20label%3Amaintenance
0.7.7 https://github.com/python-kasa/python-kasa/milestone/24
Please reload this pagehttps://github.com/python-kasa/python-kasa/pull/1219
https://github.com/rytilahti
https://github.com/sdb9696
https://github.com/apps/copilot-swe-agent
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.