Title: Making it easier to use unicode_literals · Issue #2536 · python/mypy · GitHub
Open Graph Title: Making it easier to use unicode_literals · Issue #2536 · python/mypy
X Title: Making it easier to use unicode_literals · Issue #2536 · python/mypy
Description: Currently using from __future__ import unicode_literals in Python 2 is kind of painful with mypy. Here are some potential issues: Some typeshed stubs declare things to only accept str arguments, when in reality they also accept at least ...
Open Graph Description: Currently using from __future__ import unicode_literals in Python 2 is kind of painful with mypy. Here are some potential issues: Some typeshed stubs declare things to only accept str arguments, wh...
X Description: Currently using from __future__ import unicode_literals in Python 2 is kind of painful with mypy. Here are some potential issues: Some typeshed stubs declare things to only accept str arguments, wh...
Opengraph URL: https://github.com/python/mypy/issues/2536
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Making it easier to use unicode_literals","articleBody":"Currently using `from __future__ import unicode_literals` in Python 2 is kind of painful with mypy. Here are some potential issues:\r\n\r\n* Some typeshed stubs declare things to only accept `str` arguments, when in reality they also accept at least ascii-only `unicode` objects.\r\n* Mypy might not accept the implicit `unicode` literals in every context where a literal has a syntactic role (outside normal expressions), and `b'foo'` literals won't work in Python 3. String literal type escaping is an example.\r\n\r\nIt's fair to argue that using `unicode_literals` is a bad idea, but it's not uncommon to encounter real-world code using that, so getting mypy to work with it might be at least somewhat important.","author":{"url":"https://github.com/JukkaL","@type":"Person","name":"JukkaL"},"datePublished":"2016-12-07T22:25:41Z","url":"https://github.com/python/mypy/issues/2536"}
| 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:97258d58-821d-5a22-4529-230e8429a2e5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B0F8:3CE430:1FF209:2CBB1D:6B005808 |
| html-safe-nonce | 25c45057aa11e17425e46d3375374fe3e5b9ee06eb78d6917aba4806d8d8de67 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEY4OjNDRTQzMDoxRkYyMDk6MkNCQjFEOjZCMDA1ODA4IiwidmlzaXRvcl9pZCI6IjU2NjMwNjI2MDUxODc1MzY5MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b08a33f0b212164bd01f84d703b38e2d030dde854153c4932efd2388afd48ae1 |
| hovercard-subject-tag | issue:194189749 |
| 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/mypy/2536/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e4fd210a5fbb69d588655bfeed20cf46ab9d7673942b2058c28ead4500342fe8/python/mypy/issues/2536 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e4fd210a5fbb69d588655bfeed20cf46ab9d7673942b2058c28ead4500342fe8/python/mypy/issues/2536 |
| og:image:alt | Currently using from __future__ import unicode_literals in Python 2 is kind of painful with mypy. Here are some potential issues: Some typeshed stubs declare things to only accept str arguments, wh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JukkaL |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | eacd927ba6112e3b01ba99c762bd699a4a4f5df7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width