René's URL Explorer Experiment


Title: Improve `sys` stubs by AlexWaygood · Pull Request #6816 · python/typeshed · GitHub

Open Graph Title: Improve `sys` stubs by AlexWaygood · Pull Request #6816 · python/typeshed

X Title: Improve `sys` stubs by AlexWaygood · Pull Request #6816 · python/typeshed

Description: There are quite a few errors in the stubs for the sys module. Most of these appear to have slipped through the net due to the fact that stubtest isn't much good for this module. For example, take the sys.flags object. In typeshed, we type it like this: class _flags: # rest of the class definition here flags: _flags But at runtime, it actually looks like this: >>> import sys >>> sys.flags sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0, dev_mode=False, utf8_mode=0) >>> type(sys.flags) Yup, that's a variable that has the same name as the class it's an instance of. As a result of this sys-module magic, stubtest just hasn't been checking the following documented attributes in sys: sys.flags sys.version_info sys.float_info sys.hash_info sys.int_info The return type of sys.getwindowsversion() The return type of sys.get_asyncgen_hooks()

Open Graph Description: There are quite a few errors in the stubs for the sys module. Most of these appear to have slipped through the net due to the fact that stubtest isn't much good for this module. For example, ta...

X Description: There are quite a few errors in the stubs for the sys module. Most of these appear to have slipped through the net due to the fact that stubtest isn't much good for this module. For example...

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

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:78fa6c96-4071-f426-4646-74d940359320
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8A32:137B3:21B8B7E:2C986E5:6B004E0D
html-safe-nonce20d953b46b5007518e285d9bf5aee0d067763aa85169a87c7b363a6be2a64794
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTMyOjEzN0IzOjIxQjhCN0U6MkM5ODZFNTo2QjAwNEUwRCIsInZpc2l0b3JfaWQiOiI4MTIzNTcwODUyNzY4Nzk2MTczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacdc56f5bc57614202e393c603761ca64e6a945dc0c2e4687902f15e2f5af4caf2
hovercard-subject-tagpull_request:814098948
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/typeshed/pull/6816/files
twitter:imagehttps://avatars.githubusercontent.com/u/66076021?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/66076021?s=400&v=4
og:image:altThere are quite a few errors in the stubs for the sys module. Most of these appear to have slipped through the net due to the fact that stubtest isn't much good for this module. For example, ta...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b
turbo-cache-controlno-preview
diff-viewunified
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-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb27c5dde30676028abd5c5fc53ce5c9b625f8281
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/typeshed/pull/6816/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F6816%2Ffiles
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%2F6816%2Ffiles
Sign uphttps://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
Reloadhttps://github.com/python/typeshed/pull/6816/files
Reloadhttps://github.com/python/typeshed/pull/6816/files
Reloadhttps://github.com/python/typeshed/pull/6816/files
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests252 (252)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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
Akulihttps://github.com/Akuli
python:masterhttps://github.com/python/typeshed/tree/master
AlexWaygood:sys-structseqshttps://github.com/AlexWaygood/typeshed/tree/sys-structseqs
Conversation 40 https://github.com/python/typeshed/pull/6816
Commits 13 https://github.com/python/typeshed/pull/6816/commits
Checks 0 https://github.com/python/typeshed/pull/6816/checks
Files changed https://github.com/python/typeshed/pull/6816/files
Please reload this pagehttps://github.com/python/typeshed/pull/6816/files
Improve sys stubs https://github.com/python/typeshed/pull/6816/files#top
Show all changes 13 commits https://github.com/python/typeshed/pull/6816/files
655a589 Improve `sys` stubs AlexWaygood Jan 4, 2022 https://github.com/python/typeshed/pull/6816/commits/655a58931dae6fe01c4490611869a48956f7629f
38bcdcc Update stdlib/sys.pyi AlexWaygood Jan 4, 2022 https://github.com/python/typeshed/pull/6816/commits/38bcdccf800eab37b892346cbc5b9060ee0a34da
fffd896 Update stdlib/sys.pyi AlexWaygood Jan 4, 2022 https://github.com/python/typeshed/pull/6816/commits/fffd896a33f19e365b70686e4ce9c0f1ce2e7e55
524016a Update sys.pyi AlexWaygood Jan 4, 2022 https://github.com/python/typeshed/pull/6816/commits/524016a782ffbce1429d1d5a99cf3498e55d811e
8dd35c6 Add `sys._implementation.__getattr__` AlexWaygood Jan 4, 2022 https://github.com/python/typeshed/pull/6816/commits/8dd35c6631f197d9e8d4b5fd5aa995620eb7036d
e894440 Update stdlib/sys.pyi AlexWaygood Jan 4, 2022 https://github.com/python/typeshed/pull/6816/commits/e894440770ce7600b149ba8e11d596ceab0373ee
cbb845e Address review AlexWaygood Jan 4, 2022 https://github.com/python/typeshed/pull/6816/commits/cbb845ec2d725b338b90598dec365de0c8c5cec2
3cdea98 Revert change to `UnraisableHookArgs`, fix imports AlexWaygood Jan 4, 2022 https://github.com/python/typeshed/pull/6816/commits/3cdea980e317c87599150368f966c2449d01737d
4c63b71 Fix AlexWaygood Jan 4, 2022 https://github.com/python/typeshed/pull/6816/commits/4c63b714416f1ee19588b3fca98d21f901e002b6
0b84123 Suite mask AlexWaygood Jan 4, 2022 https://github.com/python/typeshed/pull/6816/commits/0b84123b526200f00eb6afca3772f59a237a91be
9e4615a Improve `sys._flags` AlexWaygood Jan 4, 2022 https://github.com/python/typeshed/pull/6816/commits/9e4615a90970c3d48928f4386a7475383b684353
2bd2c1d Delete no-longer-used `TypeVar` AlexWaygood Jan 4, 2022 https://github.com/python/typeshed/pull/6816/commits/2bd2c1dba620750cf16688e77c2754c93f5086b7
7897583 Change `_uninstantiable_structseq` from a class to a type alias AlexWaygood Jan 5, 2022 https://github.com/python/typeshed/pull/6816/commits/7897583bf4f9d226390b95fce6f27f69f0eabeaf
Clear filters https://github.com/python/typeshed/pull/6816/files
Please reload this pagehttps://github.com/python/typeshed/pull/6816/files
Please reload this pagehttps://github.com/python/typeshed/pull/6816/files
stdlib/sys.pyihttps://github.com/python/typeshed/pull/6816/files#diff-8a26c34ba1794e6179aeb96a6a43b17f39fa3080e4ff97ec20a591145e289cc1
View file https://github.com/AlexWaygood/typeshed/blob/7897583bf4f9d226390b95fce6f27f69f0eabeaf/stdlib/sys.pyi
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/6816/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/6816/files#diff-8a26c34ba1794e6179aeb96a6a43b17f39fa3080e4ff97ec20a591145e289cc1
https://github.com/python/typeshed/pull/6816/files#diff-8a26c34ba1794e6179aeb96a6a43b17f39fa3080e4ff97ec20a591145e289cc1
https://github.com/python/typeshed/pull/6816/files#diff-8a26c34ba1794e6179aeb96a6a43b17f39fa3080e4ff97ec20a591145e289cc1
Please reload this pagehttps://github.com/python/typeshed/pull/6816/files
https://github.com/python/typeshed/pull/6816/files#diff-8a26c34ba1794e6179aeb96a6a43b17f39fa3080e4ff97ec20a591145e289cc1
Please reload this pagehttps://github.com/python/typeshed/pull/6816/files
https://github.com/python/typeshed/pull/6816/files#diff-8a26c34ba1794e6179aeb96a6a43b17f39fa3080e4ff97ec20a591145e289cc1
https://github.com/python/typeshed/pull/6816/files#diff-8a26c34ba1794e6179aeb96a6a43b17f39fa3080e4ff97ec20a591145e289cc1
https://github.com/python/typeshed/pull/6816/files#diff-8a26c34ba1794e6179aeb96a6a43b17f39fa3080e4ff97ec20a591145e289cc1
https://github.com/python/typeshed/pull/6816/files#diff-8a26c34ba1794e6179aeb96a6a43b17f39fa3080e4ff97ec20a591145e289cc1
https://github.com/python/typeshed/pull/6816/files#diff-8a26c34ba1794e6179aeb96a6a43b17f39fa3080e4ff97ec20a591145e289cc1
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.