Title: Use typeshed for builtins rather than the scraper · Issue #533 · microsoft/python-language-server · GitHub
Open Graph Title: Use typeshed for builtins rather than the scraper · Issue #533 · microsoft/python-language-server
X Title: Use typeshed for builtins rather than the scraper · Issue #533 · microsoft/python-language-server
Description: This will allow better understanding of builtins since scraper does not always generate correct result and for return type we have to do specialization. Ex, in 3.7 scraper generates pow(x, y, z) rather than pow(x, y, z = None) and specia...
Open Graph Description: This will allow better understanding of builtins since scraper does not always generate correct result and for return type we have to do specialization. Ex, in 3.7 scraper generates pow(x, y, z) ra...
X Description: This will allow better understanding of builtins since scraper does not always generate correct result and for return type we have to do specialization. Ex, in 3.7 scraper generates pow(x, y, z) ra...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/533
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use typeshed for builtins rather than the scraper","articleBody":"This will allow better understanding of builtins since scraper does not always generate correct result and for return type we have to do specialization. Ex, in 3.7 scraper generates `pow(x, y, z)` rather than `pow(x, y, z = None)` and specialization just returns type of `x`. Typeshed stub is much more detailed, but extensively uses typing module so understanding of typing has to be improved as well.\r\n\r\n```python\r\n@overload\r\ndef pow(x: int, y: int) -> Any: ... # The return type can be int or float, depending on y.\r\n@overload\r\ndef pow(x: int, y: int, z: int) -> Any: ...\r\n@overload\r\ndef pow(x: float, y: float) -> float: ...\r\n@overload\r\ndef pow(x: float, y: float, z: float) -> float: ...\r\n```","author":{"url":"https://github.com/MikhailArkhipov","@type":"Person","name":"MikhailArkhipov"},"datePublished":"2019-01-16T19:03:39Z","url":"https://github.com/microsoft/python-language-server/issues/533"}
| 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:61123b32-863a-3460-e228-2886e034a457 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C1EA:264CD6:20880:2AB39:6AFE4F14 |
| html-safe-nonce | c279ea4f61dd482b594c1b57c43ff5227c3475997c90f154a009a43bf7956e18 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUVBOjI2NENENjoyMDg4MDoyQUIzOTo2QUZFNEYxNCIsInZpc2l0b3JfaWQiOiI5MDQ2MDU5OTg3NDg2MjY1MTA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4a9bcc5eb5bda0b0eddb581547fc040c7bf493ced86b0946af60d8dd209e4f4d |
| hovercard-subject-tag | issue:399951650 |
| 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/microsoft/python-language-server/533/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da65a224e13e637811a9f49919563ab8c615ccdf73053c99359232b223a975e2/microsoft/python-language-server/issues/533 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da65a224e13e637811a9f49919563ab8c615ccdf73053c99359232b223a975e2/microsoft/python-language-server/issues/533 |
| og:image:alt | This will allow better understanding of builtins since scraper does not always generate correct result and for return type we have to do specialization. Ex, in 3.7 scraper generates pow(x, y, z) ra... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MikhailArkhipov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 894d3c8b932306ed8425e8dcbe0c1089667e487c5fe7b8a05d17e7b685207429 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 145901977 |
| octolytics-dimension-repository_nwo | microsoft/python-language-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145901977 |
| octolytics-dimension-repository_network_root_nwo | microsoft/python-language-server |
| 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 | 44570ad53e12be09be8000af683c29166c4007cb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width