René's URL Explorer Experiment


Title: More precise type hints for `slice` constructor by randolf-scholz · Pull Request #12899 · python/typeshed · GitHub

Open Graph Title: More precise type hints for `slice` constructor by randolf-scholz · Pull Request #12899 · python/typeshed

X Title: More precise type hints for `slice` constructor by randolf-scholz · Pull Request #12899 · python/typeshed

Description: Collection of library stubs for Python, with static types - More precise type hints for `slice` constructor by randolf-scholz · Pull Request #12899 · python/typeshed

Open Graph Description: pin start and step to None if not given. ensure all signatures are positional-only. Some thoughts: pandas initalizes list via [slice(None)], then modifies with slice(None, n). xarray swaps a slic...

X Description: pin start and step to None if not given. ensure all signatures are positional-only. Some thoughts: pandas initalizes list via [slice(None)], then modifies with slice(None, n). xarray swaps a slic...

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

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:c7334f7f-cbdc-ffc6-0034-4d89e3d8ad85
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA7C4:1C3DC0:382D34:4B8A5E:6B0028DE
html-safe-nonceeae09f8a58e19dbf12d7f4bfbadb67ae9a2eb697828884316d4c8ea4e541f8af
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0M0OjFDM0RDMDozODJEMzQ6NEI4QTVFOjZCMDAyOERFIiwidmlzaXRvcl9pZCI6IjEyNjg4NDA1MzQ4MjczNDYxNDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4384f5da11cf1734abf4e1254bf51ad06496f1cda584559ad1ce263e53a1fe71
hovercard-subject-tagpull_request:2144126257
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/12899/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d27696c316f2b81ccb413383bf8620981ec3fed31f2091f284c4368b44944a42/python/typeshed/pull/12899
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d27696c316f2b81ccb413383bf8620981ec3fed31f2091f284c4368b44944a42/python/typeshed/pull/12899
og:image:altpin start and step to None if not given. ensure all signatures are positional-only. Some thoughts: pandas initalizes list via [slice(None)], then modifies with slice(None, n). xarray swaps a slic...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerandolf-scholz
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
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
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/typeshed/pull/12899#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12899
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%2F12899
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/12899
Reloadhttps://github.com/python/typeshed/pull/12899
Reloadhttps://github.com/python/typeshed/pull/12899
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
randolf-scholzhttps://github.com/randolf-scholz
python:mainhttps://github.com/python/typeshed/tree/main
randolf-scholz:slice_generic_defaultshttps://github.com/randolf-scholz/typeshed/tree/slice_generic_defaults
Conversationhttps://github.com/python/typeshed/pull/12899
Commits11 (11)https://github.com/python/typeshed/pull/12899/commits
Checkshttps://github.com/python/typeshed/pull/12899/checks
Files changedhttps://github.com/python/typeshed/pull/12899/files
More precise type hints for slice constructorhttps://github.com/python/typeshed/pull/12899#top
randolf-scholzhttps://github.com/randolf-scholz
python:mainhttps://github.com/python/typeshed/tree/main
randolf-scholz:slice_generic_defaultshttps://github.com/randolf-scholz/typeshed/tree/slice_generic_defaults
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Oct 24, 2024https://github.com/python/typeshed/pull/12899#issue-2612083115
Please reload this pagehttps://github.com/python/typeshed/pull/12899
pandashttps://github.com/pandas-dev/pandas/blob/68d9dcab5b543adb3bfe5b83563c61a9b8afae77/pandas/core/algorithms.py#L1386-L1388
xarrayhttps://github.com/pydata/xarray/blob/b133fdca71fd614b8056c3e995062b2834320ba5/xarray/core/dataset.py#L7949-L7959
Please reload this pagehttps://github.com/python/typeshed/pull/12899
https://github.com/randolf-scholz
slice.__new__ pin start/step to None if not givenhttps://github.com/python/typeshed/pull/12899/commits/48b929335688d207057d3057e3dc60cd4f3c036c
48b9293https://github.com/python/typeshed/pull/12899/commits/48b929335688d207057d3057e3dc60cd4f3c036c
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12899
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Oct 24, 2024https://github.com/python/typeshed/pull/12899#issuecomment-2435774279
Please reload this pagehttps://github.com/python/typeshed/pull/12899
https://github.com/randolf-scholz
generic slice initializationhttps://github.com/python/typeshed/pull/12899/commits/b491e4d108bcb2554a4173bf151c6b5f06cebc6d
b491e4dhttps://github.com/python/typeshed/pull/12899/commits/b491e4d108bcb2554a4173bf151c6b5f06cebc6d
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Oct 24, 2024https://github.com/python/typeshed/pull/12899#issuecomment-2435783888
@AlexWaygoodhttps://github.com/AlexWaygood
#12900https://github.com/python/typeshed/pull/12900
Please reload this pagehttps://github.com/python/typeshed/pull/12899
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12899
randolf-scholzhttps://github.com/randolf-scholz
October 24, 2024 19:17https://github.com/python/typeshed/pull/12899#commits-pushed-3010eda
https://github.com/randolf-scholz
None-overloadshttps://github.com/python/typeshed/pull/12899/commits/3010eda2245bc8f8ce21660035fb533423e7a475
3010edahttps://github.com/python/typeshed/pull/12899/commits/3010eda2245bc8f8ce21660035fb533423e7a475
https://github.com/randolf-scholz
Merge branch 'main' into slice_generic_defaultshttps://github.com/python/typeshed/pull/12899/commits/d0f3325e66f6b588952a826796aaea5f5dddb1f7
d0f3325https://github.com/python/typeshed/pull/12899/commits/d0f3325e66f6b588952a826796aaea5f5dddb1f7
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12899
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Oct 24, 2024https://github.com/python/typeshed/pull/12899#issuecomment-2435961197
pandashttps://github.com/pandas-dev/pandas/blob/68d9dcab5b543adb3bfe5b83563c61a9b8afae77/pandas/core/indexes/multi.py#L2499-L2501
Please reload this pagehttps://github.com/python/typeshed/pull/12899
https://github.com/randolf-scholz
explicit overloadshttps://github.com/python/typeshed/pull/12899/commits/b4bcf86f901d007a959c8eef95f0e2024b9b4cdb
b4bcf86https://github.com/python/typeshed/pull/12899/commits/b4bcf86f901d007a959c8eef95f0e2024b9b4cdb
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12899
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Oct 25, 2024 https://github.com/python/typeshed/pull/12899#pullrequestreview-2394783915
View reviewed changes https://github.com/python/typeshed/pull/12899/files/b4bcf86f901d007a959c8eef95f0e2024b9b4cdb
AlexWaygoodhttps://github.com/AlexWaygood
https://github.com/python/typeshed/pull/12899#pullrequestreview-2394783915
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/12899
CONTRIBUTING.mdhttps://github.com/python/typeshed/pull/12899/files/b4bcf86f901d007a959c8eef95f0e2024b9b4cdb#diff-eca12c0a30e25b4b46522ebf89465a03ba72a03f540796c979137931d8f92055
Please reload this pagehttps://github.com/python/typeshed/pull/12899
stdlib/builtins.pyihttps://github.com/python/typeshed/pull/12899/files/b4bcf86f901d007a959c8eef95f0e2024b9b4cdb#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4
Please reload this pagehttps://github.com/python/typeshed/pull/12899
stdlib/builtins.pyihttps://github.com/python/typeshed/pull/12899/files/b4bcf86f901d007a959c8eef95f0e2024b9b4cdb#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4
Please reload this pagehttps://github.com/python/typeshed/pull/12899
stdlib/builtins.pyihttps://github.com/python/typeshed/pull/12899/files/b4bcf86f901d007a959c8eef95f0e2024b9b4cdb#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4
Please reload this pagehttps://github.com/python/typeshed/pull/12899
stdlib/builtins.pyihttps://github.com/python/typeshed/pull/12899/files/b4bcf86f901d007a959c8eef95f0e2024b9b4cdb#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4
Please reload this pagehttps://github.com/python/typeshed/pull/12899
https://github.com/randolf-scholz
removed accidental copy pastahttps://github.com/python/typeshed/pull/12899/commits/e838b8f29dc662ecc1140e5e1b4be673cc63787c
e838b8fhttps://github.com/python/typeshed/pull/12899/commits/e838b8f29dc662ecc1140e5e1b4be673cc63787c
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12899
randolf-scholzhttps://github.com/randolf-scholz
October 25, 2024 12:20https://github.com/python/typeshed/pull/12899#commits-pushed-0104927
https://github.com/randolf-scholz
simplify overloadshttps://github.com/python/typeshed/pull/12899/commits/0104927b7f53e0a8942940f307b0cf5dd52c54f8
0104927https://github.com/python/typeshed/pull/12899/commits/0104927b7f53e0a8942940f307b0cf5dd52c54f8
https://github.com/randolf-scholz
Merge branch 'main' into slice_generic_defaultshttps://github.com/python/typeshed/pull/12899/commits/0d4a4cf30ac0ba8e0529ce50c8f8fbf60f8033ea
0d4a4cfhttps://github.com/python/typeshed/pull/12899/commits/0d4a4cf30ac0ba8e0529ce50c8f8fbf60f8033ea
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Oct 25, 2024 https://github.com/python/typeshed/pull/12899#pullrequestreview-2394882233
View reviewed changes https://github.com/python/typeshed/pull/12899/files/0d4a4cf30ac0ba8e0529ce50c8f8fbf60f8033ea
stdlib/builtins.pyihttps://github.com/python/typeshed/pull/12899/files/0104927b7f53e0a8942940f307b0cf5dd52c54f8#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4
Please reload this pagehttps://github.com/python/typeshed/pull/12899
stdlib/builtins.pyihttps://github.com/python/typeshed/pull/12899/files/0d4a4cf30ac0ba8e0529ce50c8f8fbf60f8033ea#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4
Please reload this pagehttps://github.com/python/typeshed/pull/12899
https://github.com/randolf-scholz
more simplificationhttps://github.com/python/typeshed/pull/12899/commits/72e94b7b3a18ac2aa2656e15ef4596cb29aa6d29
72e94b7https://github.com/python/typeshed/pull/12899/commits/72e94b7b3a18ac2aa2656e15ef4596cb29aa6d29
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12899
randolf-scholzhttps://github.com/randolf-scholz
October 25, 2024 12:40https://github.com/python/typeshed/pull/12899#commits-pushed-c73c28c
https://github.com/randolf-scholz
https://github.com/AlexWaygood
Update stdlib/builtins.pyihttps://github.com/python/typeshed/pull/12899/commits/c73c28cf75c9de9750e0b5e885e337c9c863967a
c73c28chttps://github.com/python/typeshed/pull/12899/commits/c73c28cf75c9de9750e0b5e885e337c9c863967a
https://github.com/randolf-scholz
always specify all generic parametershttps://github.com/python/typeshed/pull/12899/commits/2be2aa02de73766165564fd24bb70fa8b7e8c9a2
2be2aa0https://github.com/python/typeshed/pull/12899/commits/2be2aa02de73766165564fd24bb70fa8b7e8c9a2
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Oct 25, 2024 https://github.com/python/typeshed/pull/12899#ref-pullrequest-2613758603
builtins.slice: more precise __new__ overloads and let StopT default to StartT. #12904 https://github.com/python/typeshed/pull/12904
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Oct 25, 2024https://github.com/python/typeshed/pull/12899#issuecomment-2437475648
Please reload this pagehttps://github.com/python/typeshed/pull/12899
@AlexWaygoodhttps://github.com/AlexWaygood
#12904https://github.com/python/typeshed/pull/12904
Please reload this pagehttps://github.com/python/typeshed/pull/12899
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Oct 25, 2024https://github.com/python/typeshed/pull/12899#issuecomment-2437479047
Please reload this pagehttps://github.com/python/typeshed/pull/12899
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Oct 25, 2024https://github.com/python/typeshed/pull/12899#issuecomment-2437481370
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/typeshed/pull/12899
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Oct 25, 2024 https://github.com/python/typeshed/pull/12899#pullrequestreview-2394942449
View reviewed changes https://github.com/python/typeshed/pull/12899/files/2be2aa02de73766165564fd24bb70fa8b7e8c9a2
stdlib/builtins.pyihttps://github.com/python/typeshed/pull/12899/files/2be2aa02de73766165564fd24bb70fa8b7e8c9a2#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4
Please reload this pagehttps://github.com/python/typeshed/pull/12899
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Oct 25, 2024https://github.com/python/typeshed/pull/12899#issuecomment-2437629982
#12904https://github.com/python/typeshed/pull/12904
#12899 (comment)https://github.com/python/typeshed/pull/12899#issuecomment-2437475648
Please reload this pagehttps://github.com/python/typeshed/pull/12899
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Oct 25, 2024https://github.com/python/typeshed/pull/12899#event-14872487547
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Mar 19, 2026 https://github.com/python/typeshed/pull/12899#ref-issue-4101053056
Properties .start, .stop, . step of (generic) slice[...] should be optional (| None) #15526 https://github.com/python/typeshed/issues/15526
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%2F12899
https://github.com/AlexWaygood
AlexWaygood https://github.com/AlexWaygood
https://github.com/python/typeshed/pull/12899/files/2be2aa02de73766165564fd24bb70fa8b7e8c9a2
Please reload this pagehttps://github.com/python/typeshed/pull/12899
Please reload this pagehttps://github.com/python/typeshed/pull/12899
https://github.com/randolf-scholz
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.