| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2615185b-1e58-eb40-d744-adb379fe8f38 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8CAE:197995:22FAC23:2F7F01D:6B002A5F |
| html-safe-nonce | facc7d960ac22d6efc51f7d84bda7269cf9fecf89c7d53d277b8dea197d277e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0FFOjE5Nzk5NToyMkZBQzIzOjJGN0YwMUQ6NkIwMDJBNUYiLCJ2aXNpdG9yX2lkIjoiMjY0NzAxNjE0MzM0ODMxMjY3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f60844bc1a5c4e0d440d9ff8a6a56c9b3d4855355abd17f4c785cf330e8db84f |
| hovercard-subject-tag | pull_request:2177172121 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/typeshed/pull/13008/files |
| twitter:image | https://avatars.githubusercontent.com/u/39696536?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/39696536?s=400&v=4 |
| og:image:alt | Alternative to #12904, letting step default to start|stop (if intersections are ever added, use start&stop) |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/typeshed/pull/13008/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F13008%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F13008%2Ffiles |
| 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%2Ffiles&source=header-repo&source_repo=python%2Ftypeshed |
| Reload | https://github.com/python/typeshed/pull/13008/files |
| Reload | https://github.com/python/typeshed/pull/13008/files |
| Reload | https://github.com/python/typeshed/pull/13008/files |
| python | https://github.com/python |
| typeshed | https://github.com/python/typeshed |
| Code | https://github.com/python/typeshed |
| Issues196 (196) | https://github.com/python/typeshed/issues |
| Pull requests251 (251) | https://github.com/python/typeshed/pulls |
| Actions | https://github.com/python/typeshed/actions |
| Security and quality | https://github.com/python/typeshed/security |
| Insights | https://github.com/python/typeshed/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose |
| srittau | https://github.com/srittau |
| python:main | https://github.com/python/typeshed/tree/main |
| randolf-scholz:slice_generic_step_default | https://github.com/randolf-scholz/typeshed/tree/slice_generic_step_default |
|
Conversation
5
| https://github.com/python/typeshed/pull/13008 |
|
Commits
36
| https://github.com/python/typeshed/pull/13008/commits |
|
Checks
0
| https://github.com/python/typeshed/pull/13008/checks |
|
Files changed
| https://github.com/python/typeshed/pull/13008/files |
| Please reload this page | https://github.com/python/typeshed/pull/13008/files |
|
builtins.slice: more precise __new__ overloads and defaults for StopT and StepT.
| https://github.com/python/typeshed/pull/13008/files#top |
|
Show all changes
36 commits
| https://github.com/python/typeshed/pull/13008/files |
|
48b9293
slice.__new__ pin start/step to None if not given
randolf-scholz Oct 24, 2024
| https://github.com/python/typeshed/pull/13008/commits/48b929335688d207057d3057e3dc60cd4f3c036c |
|
b491e4d
generic slice initialization
randolf-scholz Oct 24, 2024
| https://github.com/python/typeshed/pull/13008/commits/b491e4d108bcb2554a4173bf151c6b5f06cebc6d |
|
3010eda
None-overloads
randolf-scholz Oct 24, 2024
| https://github.com/python/typeshed/pull/13008/commits/3010eda2245bc8f8ce21660035fb533423e7a475 |
|
d0f3325
Merge branch 'main' into slice_generic_defaults
randolf-scholz Oct 24, 2024
| https://github.com/python/typeshed/pull/13008/commits/d0f3325e66f6b588952a826796aaea5f5dddb1f7 |
|
b4bcf86
explicit overloads
randolf-scholz Oct 24, 2024
| https://github.com/python/typeshed/pull/13008/commits/b4bcf86f901d007a959c8eef95f0e2024b9b4cdb |
|
e838b8f
removed accidental copy pasta
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/e838b8f29dc662ecc1140e5e1b4be673cc63787c |
|
0104927
simplify overloads
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/0104927b7f53e0a8942940f307b0cf5dd52c54f8 |
|
0d4a4cf
Merge branch 'main' into slice_generic_defaults
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/0d4a4cf30ac0ba8e0529ce50c8f8fbf60f8033ea |
|
72e94b7
more simplification
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/72e94b7b3a18ac2aa2656e15ef4596cb29aa6d29 |
|
c73c28c
Update stdlib/builtins.pyi
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/c73c28cf75c9de9750e0b5e885e337c9c863967a |
|
2be2aa0
always specify all generic parameters
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/2be2aa02de73766165564fd24bb70fa8b7e8c9a2 |
|
37f532a
different __new__ overloads
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/37f532a15da5881b746c732bee65d6c057efca70 |
|
11ca6c6
added test cases
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/11ca6c6c82aaed3836eef9ad0f2119f1f1ada374 |
|
4c4f319
added tests
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/4c4f3195efa127f590d407a3a71369bfd30ddbdc |
|
84897a9
docstring first
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/84897a9c972c4724efd1378759e21e98f90f85bf |
|
ba15c42
keep alphabetic order
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/ba15c4257d0d8cf6ca63d49db4bc0e17cc93b1ad |
|
6c77882
T | Any test
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/6c77882767298f714b382f10a8af5c9dc1e104f5 |
|
131c95c
region wording
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/131c95cdb5c30adf90e79a06c8a5c30495187ffc |
|
c411763
fixed tests
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/c4117633720b6c2de5585c4e82ad4eb7a6ad3c1e |
|
6b778e0
Update stdlib/@tests/test_cases/builtins/check_slice.py
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/6b778e0f023c3515dd414ba0f33665d213c6470f |
|
9f51b27
Update stdlib/@tests/test_cases/builtins/check_slice.py
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/9f51b27611d30a73d5848f3116e2ec6f4225023a |
|
11e7a16
Update stdlib/@tests/test_cases/builtins/check_slice.py
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/11e7a16a6a703d21133e80597f9358ae9d0a3f65 |
|
f1d6c1e
Update stdlib/@tests/test_cases/builtins/check_slice.py
randolf-scholz Oct 25, 2024
| https://github.com/python/typeshed/pull/13008/commits/f1d6c1efe62cd9981d3bc84ed38e54a1e8d4fa74 |
|
1daeca7
Merge branch 'main' into slice_generic_alternative
AlexWaygood Nov 12, 2024
| https://github.com/python/typeshed/pull/13008/commits/1daeca74a7d8bfbae09f30a970f00bf7f39c7de4 |
|
6bdad56
added integration tests for timeseries
randolf-scholz Nov 12, 2024
| https://github.com/python/typeshed/pull/13008/commits/6bdad560f512d1bc9fea03e606ebc19c1bae2ebd |
|
080b7fa
return type test
randolf-scholz Nov 12, 2024
| https://github.com/python/typeshed/pull/13008/commits/080b7faf3ae0c0354c1a46da51473dbc253d0e66 |
|
c7053c2
Update stdlib/@tests/test_cases/builtins/check_slice.py
randolf-scholz Nov 12, 2024
| https://github.com/python/typeshed/pull/13008/commits/c7053c299161898d3f7bc1e704c263d87a7561fb |
|
45a667f
reverted to and added consistency tests
randolf-scholz Nov 12, 2024
| https://github.com/python/typeshed/pull/13008/commits/45a667fbd6ce09d3da0415748bf500d88ded273e |
|
f0790f6
re-organized tests by number of arguments; added negative checks
randolf-scholz Nov 12, 2024
| https://github.com/python/typeshed/pull/13008/commits/f0790f61e676f8b66385c26ff28fc466a230796f |
|
223ff20
improved readability by using equal length arguments
randolf-scholz Nov 12, 2024
| https://github.com/python/typeshed/pull/13008/commits/223ff204a3c00e5ae10ec7a53c704ca04294538c |
|
2276eb9
default step = start|stop
randolf-scholz Nov 13, 2024
| https://github.com/python/typeshed/pull/13008/commits/2276eb928e732cd0201587adbabe5e3f4550015e |
|
7804f97
added test for defaulting behavior
randolf-scholz Nov 13, 2024
| https://github.com/python/typeshed/pull/13008/commits/7804f978898b87e659aecde174ab70013238ac73 |
|
d789577
added comment for step default
randolf-scholz Nov 13, 2024
| https://github.com/python/typeshed/pull/13008/commits/d789577deced131d2b0c1a9598b0a94f30db16ac |
|
127e49e
added comment for step default
randolf-scholz Nov 13, 2024
| https://github.com/python/typeshed/pull/13008/commits/127e49e16920e8bbbca38ac13eddf8f803e84247 |
|
7c2ba67
Merge branch 'main' into slice_generic_step_default
randolf-scholz Nov 21, 2024
| https://github.com/python/typeshed/pull/13008/commits/7c2ba67c33927742f0428779da06e6e88d515d7a |
|
646e994
Merge branch 'main' into slice_generic_step_default
randolf-scholz Jan 6, 2025
| https://github.com/python/typeshed/pull/13008/commits/646e994fa2b7abfab6c33341e5c367d611c9235c |
|
Clear filters
| https://github.com/python/typeshed/pull/13008/files |
| Please reload this page | https://github.com/python/typeshed/pull/13008/files |
| Please reload this page | https://github.com/python/typeshed/pull/13008/files |
|
check_slice.py
| https://github.com/python/typeshed/pull/13008/files#diff-b1f08eb58762fefd1afd1b788903d869927f1191648639ae994b808c85b6c263 |
|
builtins.pyi
| https://github.com/python/typeshed/pull/13008/files#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4 |
| stdlib/@tests/test_cases/builtins/check_slice.py | https://github.com/python/typeshed/pull/13008/files#diff-b1f08eb58762fefd1afd1b788903d869927f1191648639ae994b808c85b6c263 |
|
View file
| https://github.com/randolf-scholz/typeshed/blob/646e994fa2b7abfab6c33341e5c367d611c9235c/stdlib/%40tests/test_cases/builtins/check_slice.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typeshed/pull/13008/{{ revealButtonHref }} |
| stdlib/builtins.pyi | https://github.com/python/typeshed/pull/13008/files#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4 |
|
View file
| https://github.com/randolf-scholz/typeshed/blob/646e994fa2b7abfab6c33341e5c367d611c9235c/stdlib/builtins.pyi |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/typeshed/pull/13008/{{ revealButtonHref }} |
|
| https://github.com/python/typeshed/pull/13008/files#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4 |
|
| https://github.com/python/typeshed/pull/13008/files#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4 |
|
| https://github.com/python/typeshed/pull/13008/files#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4 |
|
| https://github.com/python/typeshed/pull/13008/files#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4 |
|
| https://github.com/python/typeshed/pull/13008/files#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4 |
|
| https://github.com/python/typeshed/pull/13008/files#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |