René's URL Explorer Experiment


Title: get_type_hints(): find the right globalns for classes and modules by ambv · Pull Request #470 · python/typing · GitHub

Open Graph Title: get_type_hints(): find the right globalns for classes and modules by ambv · Pull Request #470 · python/typing

X Title: get_type_hints(): find the right globalns for classes and modules by ambv · Pull Request #470 · python/typing

Description: This makes the default behavior (without specifying globalns manually) more predictable for users. Implementation for classes assumes has a __module__ attribute and that module is present in sys.modules. It does this recursively for all bases in the MRO. For modules, the implementation just uses their __dict__ directly. This is backwards compatible, will just raise fewer exceptions in naive user code.

Open Graph Description: This makes the default behavior (without specifying globalns manually) more predictable for users. Implementation for classes assumes has a __module__ attribute and that module is present in sys.mo...

X Description: This makes the default behavior (without specifying globalns manually) more predictable for users. Implementation for classes assumes has a __module__ attribute and that module is present in sys.mo...

Opengraph URL: https://github.com/python/typing/pull/470

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:d02d2e45-866f-dbc6-ba92-b6e12fa58902
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id847E:5875E:27FEE97:3677EAA:6B004510
html-safe-nonce98e01207eec595eebf560a4b6b1556c32564d8a9f2584d715e11bb070cf81432
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDdFOjU4NzVFOjI3RkVFOTc6MzY3N0VBQTo2QjAwNDUxMCIsInZpc2l0b3JfaWQiOiIzMzcxNTI0NzE0Njk3NjA2NDE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb2471f9d84b241da7672be6294642f8ed4055dae7af846c86fdf32e49d2396b1
hovercard-subject-tagpull_request:140936778
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/typing/pull/470/files
twitter:imagehttps://avatars.githubusercontent.com/u/55281?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/55281?s=400&v=4
og:image:altThis makes the default behavior (without specifying globalns manually) more predictable for users. Implementation for classes assumes has a __module__ attribute and that module is present in sys.mo...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/typing git https://github.com/python/typing.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id24604008
octolytics-dimension-repository_nwopython/typing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24604008
octolytics-dimension-repository_network_root_nwopython/typing
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/typing/pull/470/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fpull%2F470%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%2Ftyping%2Fpull%2F470%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%2Ftyping
Reloadhttps://github.com/python/typing/pull/470/files
Reloadhttps://github.com/python/typing/pull/470/files
Reloadhttps://github.com/python/typing/pull/470/files
pythonhttps://github.com/python
typinghttps://github.com/python/typing
Codehttps://github.com/python/typing
Issues206 (206)https://github.com/python/typing/issues
Pull requests27 (27)https://github.com/python/typing/pulls
Discussionshttps://github.com/python/typing/discussions
Actionshttps://github.com/python/typing/actions
Security and qualityhttps://github.com/python/typing/security
Insightshttps://github.com/python/typing/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Ftyping%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Ftyping%2Fissues%2Fnew%2Fchoose
ambvhttps://github.com/ambv
masterhttps://github.com/python/typing/tree/master
globalnsForClasseshttps://github.com/python/typing/tree/globalnsForClasses
Conversation 11 https://github.com/python/typing/pull/470
Commits 2 https://github.com/python/typing/pull/470/commits
Checks 0 https://github.com/python/typing/pull/470/checks
Files changed https://github.com/python/typing/pull/470/files
Please reload this pagehttps://github.com/python/typing/pull/470/files
get_type_hints(): find the right globalns for classes and modules https://github.com/python/typing/pull/470/files#top
Show all changes 2 commits https://github.com/python/typing/pull/470/files
8581ec2 get_type_hints(): find the right globalns for classes and modules Sep 13, 2017 https://github.com/python/typing/pull/470/commits/8581ec217b5e0d198ca1f213d2c1e0bb82311b4b
4cc96ae Make mods_generics_cache.py compatible with Python <3.6 again Sep 14, 2017 https://github.com/python/typing/pull/470/commits/4cc96aee42ce60deb34d22f899d01e06f4a2631f
Clear filters https://github.com/python/typing/pull/470/files
Please reload this pagehttps://github.com/python/typing/pull/470/files
Please reload this pagehttps://github.com/python/typing/pull/470/files
mod_generics_cache.py https://github.com/python/typing/pull/470/files#diff-e1b7fac78f9a7a36e1bb0aa8837ec54599fcfa7cb67062c5268bd340e93fd5b7
test_typing.py https://github.com/python/typing/pull/470/files#diff-e618ee6a4894a62d9269e41c4dc836e31e8224cfb66b5be3b325f4798ec245e3
typing.py https://github.com/python/typing/pull/470/files#diff-ad6da8dfad5c336100410e57073641a0266b69e1801476d2b1e593b2c04f81f5
src/mod_generics_cache.pyhttps://github.com/python/typing/pull/470/files#diff-e1b7fac78f9a7a36e1bb0aa8837ec54599fcfa7cb67062c5268bd340e93fd5b7
View file https://github.com/python/typing/blob/4cc96aee42ce60deb34d22f899d01e06f4a2631f/src/mod_generics_cache.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/470/{{ revealButtonHref }}
ambvhttps://github.com/ambv
Sep 14, 2017https://github.com/python/typing/pull/470/files#r138771383
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typing/pull/470/files
src/test_typing.pyhttps://github.com/python/typing/pull/470/files#diff-e618ee6a4894a62d9269e41c4dc836e31e8224cfb66b5be3b325f4798ec245e3
View file https://github.com/python/typing/blob/4cc96aee42ce60deb34d22f899d01e06f4a2631f/src/test_typing.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/470/{{ revealButtonHref }}
https://github.com/python/typing/pull/470/files#diff-e618ee6a4894a62d9269e41c4dc836e31e8224cfb66b5be3b325f4798ec245e3
https://github.com/python/typing/pull/470/files#diff-e618ee6a4894a62d9269e41c4dc836e31e8224cfb66b5be3b325f4798ec245e3
https://github.com/python/typing/pull/470/files#diff-e618ee6a4894a62d9269e41c4dc836e31e8224cfb66b5be3b325f4798ec245e3
https://github.com/python/typing/pull/470/files#diff-e618ee6a4894a62d9269e41c4dc836e31e8224cfb66b5be3b325f4798ec245e3
https://github.com/python/typing/pull/470/files#diff-e618ee6a4894a62d9269e41c4dc836e31e8224cfb66b5be3b325f4798ec245e3
https://github.com/python/typing/pull/470/files#diff-e618ee6a4894a62d9269e41c4dc836e31e8224cfb66b5be3b325f4798ec245e3
https://github.com/python/typing/pull/470/files#diff-e618ee6a4894a62d9269e41c4dc836e31e8224cfb66b5be3b325f4798ec245e3
https://github.com/python/typing/pull/470/files#diff-e618ee6a4894a62d9269e41c4dc836e31e8224cfb66b5be3b325f4798ec245e3
ambvhttps://github.com/ambv
Sep 13, 2017https://github.com/python/typing/pull/470/files#r138763236
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typing/pull/470/files
ilevkivskyihttps://github.com/ilevkivskyi
Sep 14, 2017https://github.com/python/typing/pull/470/files#r138818285
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typing/pull/470/files
natgaertnerhttps://github.com/natgaertner
May 10, 2019https://github.com/python/typing/pull/470/files#r283058646
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
natgaertner/cpython@0cde103https://github.com/natgaertner/cpython/commit/0cde1032e14befe2cec21060a4dbebb891f51fc6
Please reload this pagehttps://github.com/python/typing/pull/470/files
https://github.com/python/typing/pull/470/files#diff-e618ee6a4894a62d9269e41c4dc836e31e8224cfb66b5be3b325f4798ec245e3
https://github.com/python/typing/pull/470/files#diff-e618ee6a4894a62d9269e41c4dc836e31e8224cfb66b5be3b325f4798ec245e3
src/typing.pyhttps://github.com/python/typing/pull/470/files#diff-ad6da8dfad5c336100410e57073641a0266b69e1801476d2b1e593b2c04f81f5
View file https://github.com/python/typing/blob/4cc96aee42ce60deb34d22f899d01e06f4a2631f/src/typing.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/470/{{ revealButtonHref }}
https://github.com/python/typing/pull/470/files#diff-ad6da8dfad5c336100410e57073641a0266b69e1801476d2b1e593b2c04f81f5
https://github.com/python/typing/pull/470/files#diff-ad6da8dfad5c336100410e57073641a0266b69e1801476d2b1e593b2c04f81f5
https://github.com/python/typing/pull/470/files#diff-ad6da8dfad5c336100410e57073641a0266b69e1801476d2b1e593b2c04f81f5
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.