Title: Set difference unexpectedly permissive · Issue #1840 · python/typeshed · GitHub
Open Graph Title: Set difference unexpectedly permissive · Issue #1840 · python/typeshed
X Title: Set difference unexpectedly permissive · Issue #1840 · python/typeshed
Description: Mypy passes accepts the following snippet, even though the set subtraction is guaranteed to be a no-op. a: Set[str] = set(["hello"]) b: Set[bytes] = set([b"world"]) b -= a Would it make sense to require Set[T] for both arguments to a dif...
Open Graph Description: Mypy passes accepts the following snippet, even though the set subtraction is guaranteed to be a no-op. a: Set[str] = set(["hello"]) b: Set[bytes] = set([b"world"]) b -= a Would it make sense to re...
X Description: Mypy passes accepts the following snippet, even though the set subtraction is guaranteed to be a no-op. a: Set[str] = set(["hello"]) b: Set[bytes] = set([b"world"]) b -= a Would...
Opengraph URL: https://github.com/python/typeshed/issues/1840
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Set difference unexpectedly permissive","articleBody":"Mypy passes accepts the following snippet, even though the set subtraction is guaranteed to be a no-op.\r\n\r\n```\r\n a: Set[str] = set([\"hello\"])\r\n b: Set[bytes] = set([b\"world\"])\r\n b -= a\r\n```\r\n\r\nWould it make sense to require `Set[T]` for both arguments to a difference operation?","author":{"url":"https://github.com/chadaustin","@type":"Person","name":"chadaustin"},"datePublished":"2018-01-22T19:32:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/1840/typeshed/issues/1840"}
| 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:31ef2da1-c27c-dbd4-0cf9-14b8ba49ebe7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFCA:17D6AA:2724257:281A95C:6A62F338 |
| html-safe-nonce | 2b768112094ebf5a8b0abad625c19bd2f2d69a8c9215ac4d6e3fceb8723195c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkNBOjE3RDZBQToyNzI0MjU3OjI4MUE5NUM6NkE2MkYzMzgiLCJ2aXNpdG9yX2lkIjoiNzExMjk3ODQ5MTI1NzMyMDI0OCIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9 |
| visitor-hmac | f52636e26e63ea6df1a7f75538aeafa981bb9fcf7ccbb1c0ab3a04faaa82119b |
| hovercard-subject-tag | issue:290587613 |
| 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/1840/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6718c9a51eb9cd8c94aae5c2906678760068001f9d3bfa2928affc88aa341e1c/python/typeshed/issues/1840 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6718c9a51eb9cd8c94aae5c2906678760068001f9d3bfa2928affc88aa341e1c/python/typeshed/issues/1840 |
| og:image:alt | Mypy passes accepts the following snippet, even though the set subtraction is guaranteed to be a no-op. a: Set[str] = set(["hello"]) b: Set[bytes] = set([b"world"]) b -= a Would it make sense to re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chadaustin |
| hostname | github.com |
| expected-hostname | github.com |
| None | b415018e190e73858133ddcaa36acce7b3f3572fe54dda84bd3b21a6ec714c30 |
| 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 | 22f98521e99f504294ab0812b66104d50eb75a70 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width