Title: weakref.proxy is not generic · Issue #3445 · python/typeshed · GitHub
Open Graph Title: weakref.proxy is not generic · Issue #3445 · python/typeshed
X Title: weakref.proxy is not generic · Issue #3445 · python/typeshed
Description: As weakref.proxy is not generic which can be seen here _weakref.py what is the intended way to annotate it or is this impossible? Normal weakproxy.ref's can be annotated as far as I think using spam = ReferenceType[Class] whereas ham = P...
Open Graph Description: As weakref.proxy is not generic which can be seen here _weakref.py what is the intended way to annotate it or is this impossible? Normal weakproxy.ref's can be annotated as far as I think using spa...
X Description: As weakref.proxy is not generic which can be seen here _weakref.py what is the intended way to annotate it or is this impossible? Normal weakproxy.ref's can be annotated as far as I think using...
Opengraph URL: https://github.com/python/typeshed/issues/3445
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"weakref.proxy is not generic","articleBody":"As weakref.proxy is not generic which can be seen here [_weakref.py](https://github.com/python/typeshed/blob/e4677d9ed4aeb1ae9e094aa795fa6d616959ff2e/stdlib/2and3/_weakref.pyi#L10) what is the intended way to annotate it or is this impossible?\r\nNormal weakproxy.ref's can be annotated as far as I think using\r\n```\r\nspam = ReferenceType[Class]\r\n```\r\nwhereas\r\n```\r\nham = ProxyType[Class]\r\n```\r\ndoes not work. Is one supposed to just\r\n```\r\negg = Class\r\n```\r\nas it is a proxy and should behave the same?","author":{"url":"https://github.com/septatrix","@type":"Person","name":"septatrix"},"datePublished":"2019-11-06T16:17:42Z","url":"https://github.com/python/typeshed/issues/3445"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f11ee366-42a3-3ba8-ca58-736dc05335cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 842A:D064:23087D3:2F97045:6B002913 |
| html-safe-nonce | f2412e2bcebc862f6981521150e418300ea64797665cb7fd2a16bd2f29537759 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDJBOkQwNjQ6MjMwODdEMzoyRjk3MDQ1OjZCMDAyOTEzIiwidmlzaXRvcl9pZCI6IjgzNDA0NTM3NzMzNjUyMjU3NDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 47595827d12244a5a7295ec6af7c72d484fec9aca16a8e99b64263c687625b66 |
| hovercard-subject-tag | issue:518577992 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typeshed/3445/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9ab050fcb634d6c6b3389ff9f75e42490799ef8782e5d0271882e78cfc8fa43b/python/typeshed/issues/3445 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ab050fcb634d6c6b3389ff9f75e42490799ef8782e5d0271882e78cfc8fa43b/python/typeshed/issues/3445 |
| og:image:alt | As weakref.proxy is not generic which can be seen here _weakref.py what is the intended way to annotate it or is this impossible? Normal weakproxy.ref's can be annotated as far as I think using spa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | septatrix |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width