René's URL Explorer Experiment


Title: Use object instead of Any for labels() parameters by gregoiredx · Pull Request #1186 · prometheus/client_python · GitHub

Open Graph Title: Use object instead of Any for labels() parameters by gregoiredx · Pull Request #1186 · prometheus/client_python

X Title: Use object instead of Any for labels() parameters by gregoiredx · Pull Request #1186 · prometheus/client_python

Description: Prometheus instrumentation library for Python applications - Use object instead of Any for labels() parameters by gregoiredx · Pull Request #1186 · prometheus/client_python

Open Graph Description: I'm working on a project where we try to reduce lines flagged as Any by mypy line precision report. The type of labels() parameters is Any, reducing the whole line as Any (mypy takes the worst ...

X Description: I'm working on a project where we try to reduce lines flagged as Any by mypy line precision report. The type of labels() parameters is Any, reducing the whole line as Any (mypy takes the wo...

Opengraph URL: https://github.com/prometheus/client_python/pull/1186

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:85f1d378-0e61-eb69-a67d-08ca1891a7d0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id89E8:223B79:312941:42F70A:6A525ABE
html-safe-nonce6a41b8f7a0d7d75157b6512db605503a7f2aa9f45c3f8b88afc2478708f66e18
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUU4OjIyM0I3OTozMTI5NDE6NDJGNzBBOjZBNTI1QUJFIiwidmlzaXRvcl9pZCI6IjM5Nzc4OTQ4NjMzMjQ3MzIwOTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac167b62789548083972eaf014a3dfe8029d94a9e55526a98db4e5aac823513e3b
hovercard-subject-tagpull_request:3941544017
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/prometheus/client_python/1186/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c9312c0040dd4f289338ac498dfb9726bc91a82ad0cd1a5ceda20787a1809e5e/prometheus/client_python/pull/1186
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c9312c0040dd4f289338ac498dfb9726bc91a82ad0cd1a5ceda20787a1809e5e/prometheus/client_python/pull/1186
og:image:altI'm working on a project where we try to reduce lines flagged as Any by mypy line precision report. The type of labels() parameters is Any, reducing the whole line as Any (mypy takes the worst ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegregoiredx
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
go-importgithub.com/prometheus/client_python git https://github.com/prometheus/client_python.git
octolytics-dimension-user_id3380462
octolytics-dimension-user_loginprometheus
octolytics-dimension-repository_id30618733
octolytics-dimension-repository_nwoprometheus/client_python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id30618733
octolytics-dimension-repository_network_root_nwoprometheus/client_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
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/prometheus/client_python/pull/1186#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_python%2Fpull%2F1186
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%2Fprometheus%2Fclient_python%2Fpull%2F1186
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=prometheus%2Fclient_python
Reloadhttps://github.com/prometheus/client_python/pull/1186
Reloadhttps://github.com/prometheus/client_python/pull/1186
Reloadhttps://github.com/prometheus/client_python/pull/1186
Please reload this pagehttps://github.com/prometheus/client_python/pull/1186
prometheus https://github.com/prometheus
client_pythonhttps://github.com/prometheus/client_python
Notifications https://github.com/login?return_to=%2Fprometheus%2Fclient_python
Fork 864 https://github.com/login?return_to=%2Fprometheus%2Fclient_python
Star 4.3k https://github.com/login?return_to=%2Fprometheus%2Fclient_python
Code https://github.com/prometheus/client_python
Issues 104 https://github.com/prometheus/client_python/issues
Pull requests 39 https://github.com/prometheus/client_python/pulls
Discussions https://github.com/prometheus/client_python/discussions
Actions https://github.com/prometheus/client_python/actions
Projects https://github.com/prometheus/client_python/projects
Wiki https://github.com/prometheus/client_python/wiki
Security and quality 0 https://github.com/prometheus/client_python/security
Insights https://github.com/prometheus/client_python/pulse
Code https://github.com/prometheus/client_python
Issues https://github.com/prometheus/client_python/issues
Pull requests https://github.com/prometheus/client_python/pulls
Discussions https://github.com/prometheus/client_python/discussions
Actions https://github.com/prometheus/client_python/actions
Projects https://github.com/prometheus/client_python/projects
Wiki https://github.com/prometheus/client_python/wiki
Security and quality https://github.com/prometheus/client_python/security
Insights https://github.com/prometheus/client_python/pulse
csmarchbankshttps://github.com/csmarchbanks
prometheus:masterhttps://github.com/prometheus/client_python/tree/master
gregoiredx:gdeveaux/labels-object-typinghttps://github.com/gregoiredx/client_python/tree/gdeveaux/labels-object-typing
Conversationhttps://github.com/prometheus/client_python/pull/1186
Commits1 (1)https://github.com/prometheus/client_python/pull/1186/commits
Checkshttps://github.com/prometheus/client_python/pull/1186/checks
Files changedhttps://github.com/prometheus/client_python/pull/1186/files
Use object instead of Any for labels() parametershttps://github.com/prometheus/client_python/pull/1186#top
csmarchbankshttps://github.com/csmarchbanks
prometheus:masterhttps://github.com/prometheus/client_python/tree/master
gregoiredx:gdeveaux/labels-object-typinghttps://github.com/gregoiredx/client_python/tree/gdeveaux/labels-object-typing
https://github.com/gregoiredx
gregoiredxhttps://github.com/gregoiredx
Jun 26, 2026https://github.com/prometheus/client_python/pull/1186#issue-4751196159
Please reload this pagehttps://github.com/prometheus/client_python/pull/1186
mypy line precision reporthttps://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-lineprecision-report
https://mypy.readthedocs.io/en/stable/kinds_of_types.html#the-any-typehttps://mypy.readthedocs.io/en/stable/kinds_of_types.html#the-any-type
Any vs. objecthttps://mypy.readthedocs.io/en/stable/dynamic_typing.html#any-vs-object
Please reload this pagehttps://github.com/prometheus/client_python/pull/1186
https://github.com/gregoiredx
gregoiredxhttps://github.com/gregoiredx
force-pushedhttps://github.com/prometheus/client_python/compare/9c154a6d26657be8cb215a271d2411bf0b52a0b1..49c6c192000297a8b678b6540600da1949debe20
9c154a6https://github.com/prometheus/client_python/commit/9c154a6d26657be8cb215a271d2411bf0b52a0b1
49c6c19https://github.com/prometheus/client_python/commit/49c6c192000297a8b678b6540600da1949debe20
Compare https://github.com/prometheus/client_python/compare/9c154a6d26657be8cb215a271d2411bf0b52a0b1..49c6c192000297a8b678b6540600da1949debe20
June 26, 2026 10:27https://github.com/prometheus/client_python/pull/1186#event-27241822480
https://github.com/gregoiredx
gregoiredxhttps://github.com/gregoiredx
June 26, 2026 10:27https://github.com/prometheus/client_python/pull/1186#event-27241828407
https://github.com/gregoiredx
gregoiredxhttps://github.com/gregoiredx
Jun 26, 2026https://github.com/prometheus/client_python/pull/1186#issuecomment-4808710798
@csmarchbankshttps://github.com/csmarchbanks
Please reload this pagehttps://github.com/prometheus/client_python/pull/1186
https://github.com/gregoiredx
Use object instead of Any for labels() parametershttps://github.com/prometheus/client_python/pull/1186/commits/757abe80bb8e5d9f164cbfe7acc9b03c9f23acd1
757abe8https://github.com/prometheus/client_python/pull/1186/commits/757abe80bb8e5d9f164cbfe7acc9b03c9f23acd1
https://github.com/gregoiredx
gregoiredxhttps://github.com/gregoiredx
force-pushedhttps://github.com/prometheus/client_python/compare/49c6c192000297a8b678b6540600da1949debe20..757abe80bb8e5d9f164cbfe7acc9b03c9f23acd1
49c6c19https://github.com/prometheus/client_python/commit/49c6c192000297a8b678b6540600da1949debe20
757abe8https://github.com/prometheus/client_python/commit/757abe80bb8e5d9f164cbfe7acc9b03c9f23acd1
Compare https://github.com/prometheus/client_python/compare/49c6c192000297a8b678b6540600da1949debe20..757abe80bb8e5d9f164cbfe7acc9b03c9f23acd1
June 26, 2026 10:40https://github.com/prometheus/client_python/pull/1186#event-27242228899
https://github.com/csmarchbanks
csmarchbankshttps://github.com/csmarchbanks
Jun 26, 2026 https://github.com/prometheus/client_python/pull/1186#pullrequestreview-4581752898
View reviewed changes https://github.com/prometheus/client_python/pull/1186/files/757abe80bb8e5d9f164cbfe7acc9b03c9f23acd1
csmarchbankshttps://github.com/csmarchbanks
https://github.com/prometheus/client_python/pull/1186#pullrequestreview-4581752898
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/prometheus/client_python/pull/1186
https://github.com/gregoiredx
gregoiredxhttps://github.com/gregoiredx
Jun 28, 2026https://github.com/prometheus/client_python/pull/1186#issuecomment-4825921494
Please reload this pagehttps://github.com/prometheus/client_python/pull/1186
mypy doc is pretty clear about thathttps://mypy.readthedocs.io/en/stable/kinds_of_types.html#the-any-type
objecthttps://docs.python.org/3/library/functions.html#object
Any vs. objecthttps://mypy.readthedocs.io/en/stable/dynamic_typing.html#any-vs-object
mypy reportshttps://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-lineprecision-report
"invariance"https://mypy.readthedocs.io/en/stable/common_issues.html#variance
Please reload this pagehttps://github.com/prometheus/client_python/pull/1186
https://github.com/gregoiredx
gregoiredxhttps://github.com/gregoiredx
csmarchbankshttps://github.com/csmarchbanks
June 28, 2026 11:21https://github.com/prometheus/client_python/pull/1186#event-27297765872
https://github.com/csmarchbanks
csmarchbankshttps://github.com/csmarchbanks
Jun 30, 2026 https://github.com/prometheus/client_python/pull/1186#pullrequestreview-4596643895
View reviewed changes https://github.com/prometheus/client_python/pull/1186/files/757abe80bb8e5d9f164cbfe7acc9b03c9f23acd1
csmarchbankshttps://github.com/csmarchbanks
https://github.com/prometheus/client_python/pull/1186#pullrequestreview-4596643895
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/prometheus/client_python/pull/1186
https://github.com/csmarchbanks
csmarchbankshttps://github.com/csmarchbanks
a4bbec9https://github.com/prometheus/client_python/commit/a4bbec9edc7bf936af3cf9e829e59ad16083d10b
Jun 30, 2026https://github.com/prometheus/client_python/pull/1186#event-27356846220
Please reload this pagehttps://github.com/prometheus/client_python/pull/1186
https://github.com/gregoiredx
gregoiredxhttps://github.com/gregoiredx
Jun 30, 2026https://github.com/prometheus/client_python/pull/1186#issuecomment-4840976622
Please reload this pagehttps://github.com/prometheus/client_python/pull/1186
https://github.co/hiddenchars
https://github.com/prometheus/client_python/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%2Fprometheus%2Fclient_python%2Fpull%2F1186
https://github.com/csmarchbanks
csmarchbanks https://github.com/csmarchbanks
https://github.com/prometheus/client_python/pull/1186/files/757abe80bb8e5d9f164cbfe7acc9b03c9f23acd1
Please reload this pagehttps://github.com/prometheus/client_python/pull/1186
https://github.com/gregoiredx
https://github.com/csmarchbanks
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.