Title: Support Any(val)? · Issue #33 · python/typing · GitHub
Open Graph Title: Support Any(val)? · Issue #33 · python/typing
X Title: Support Any(val)? · Issue #33 · python/typing
Description: I just noticed that mypy's typing.py says that Any can be used to cast a value to type Any. E.g. x = 42 # type: int y = Any(x) y.append(42) # No error Do we want/need this? What other notation could be used that we already support?
Open Graph Description: I just noticed that mypy's typing.py says that Any can be used to cast a value to type Any. E.g. x = 42 # type: int y = Any(x) y.append(42) # No error Do we want/need this? What other notation coul...
X Description: I just noticed that mypy's typing.py says that Any can be used to cast a value to type Any. E.g. x = 42 # type: int y = Any(x) y.append(42) # No error Do we want/need this? What other notation ...
Opengraph URL: https://github.com/python/typing/issues/33
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support Any(val)?","articleBody":"I just noticed that mypy's typing.py says that Any can be used to cast a value to type Any. E.g.\n\n```\nx = 42 # type: int\ny = Any(x)\ny.append(42) # No error\n```\n\nDo we want/need this? What other notation could be used that we already support?\n","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2015-01-07T20:59:41Z","url":"https://github.com/python/typing/issues/33"}
| 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:6760f92b-bc70-7546-d001-f25240bc054b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA42:26B9F0:3EFC54:580FB3:6B006F8D |
| html-safe-nonce | db5f9868797d2c1d8d80f617b8d66e8916f2e188106a6037c84a0aaf1e91a387 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTQyOjI2QjlGMDozRUZDNTQ6NTgwRkIzOjZCMDA2RjhEIiwidmlzaXRvcl9pZCI6IjI4MTE5NTgzMTA3NDIyOTAzMTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 59d333e67edb60646e9f32e7de72e1d51a0b82d419d3471edc270e888d62f140 |
| hovercard-subject-tag | issue:53681534 |
| 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/typing/33/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f7cf08e5e180ce3b28d68ae494c884e02fba7b21242e5982f2788ebed76c10e3/python/typing/issues/33 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f7cf08e5e180ce3b28d68ae494c884e02fba7b21242e5982f2788ebed76c10e3/python/typing/issues/33 |
| og:image:alt | I just noticed that mypy's typing.py says that Any can be used to cast a value to type Any. E.g. x = 42 # type: int y = Any(x) y.append(42) # No error Do we want/need this? What other notation coul... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gvanrossum |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typing git https://github.com/python/typing.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 24604008 |
| octolytics-dimension-repository_nwo | python/typing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24604008 |
| octolytics-dimension-repository_network_root_nwo | python/typing |
| 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 | 46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width