Title: special rules in typeshed pyi · Issue #270 · python/typeshed · GitHub
Open Graph Title: special rules in typeshed pyi · Issue #270 · python/typeshed
X Title: special rules in typeshed pyi · Issue #270 · python/typeshed
Description: Let's use this issue to track special stub rules that found their way into typeshed stubs. Since mypy is currently the only system used for testing typeshed, it's natural for some mypy logic to become reflected in the typeshed stubs. So ...
Open Graph Description: Let's use this issue to track special stub rules that found their way into typeshed stubs. Since mypy is currently the only system used for testing typeshed, it's natural for some mypy logic to bec...
X Description: Let's use this issue to track special stub rules that found their way into typeshed stubs. Since mypy is currently the only system used for testing typeshed, it's natural for some mypy logi...
Opengraph URL: https://github.com/python/typeshed/issues/270
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"special rules in typeshed pyi","articleBody":"Let's use this issue to track special stub rules that found their way into typeshed stubs. Since mypy is currently the only system used for testing typeshed, it's natural for some mypy logic to become reflected in the typeshed stubs.\n\nSo far I have:\n- When something is declared as taking unicode (in the PY2 stubs) then it actually also takes str/bytes.\n- When something is declared as taking only float, it also takes int. (EDIT: This is mentioned in PEP 484. See https://www.python.org/dev/peps/pep-0484/#the-numeric-tower)\n\n(I'll add these to `README.md` once we have a complete list.)\n","author":{"url":"https://github.com/matthiaskramm","@type":"Person","name":"matthiaskramm"},"datePublished":"2016-06-06T02:41:20Z","url":"https://github.com/python/typeshed/issues/270"}
| 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:ab6f00b9-293e-aeb5-7197-7656b8ae9489 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8914:196792:24CD0FD:302F8E3:6AFFFA64 |
| html-safe-nonce | a3c813905198fec02e6f9fef1dac409547f5cd62304b3a9aa4397f34ba1de69d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTE0OjE5Njc5MjoyNENEMEZEOjMwMkY4RTM6NkFGRkZBNjQiLCJ2aXNpdG9yX2lkIjoiNDY4MTc0MTgxMTYwODE4OTU0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c8781943a49ab4dd1ebdacd636227c21ffd66aeba0d8ab94bce936ab0dcb4488 |
| hovercard-subject-tag | issue:158591287 |
| 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/270/issue_layout |
| twitter:image | https://opengraph.githubassets.com/436e6fda08c505dbd0acd58f050480d92880a904bae87e44f040ed40db644f47/python/typeshed/issues/270 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/436e6fda08c505dbd0acd58f050480d92880a904bae87e44f040ed40db644f47/python/typeshed/issues/270 |
| og:image:alt | Let's use this issue to track special stub rules that found their way into typeshed stubs. Since mypy is currently the only system used for testing typeshed, it's natural for some mypy logic to bec... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matthiaskramm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width