Title: Undefined variable: 'str' as part of correct type annotation · Issue #1732 · microsoft/python-language-server · GitHub
Open Graph Title: Undefined variable: 'str' as part of correct type annotation · Issue #1732 · microsoft/python-language-server
X Title: Undefined variable: 'str' as part of correct type annotation · Issue #1732 · microsoft/python-language-server
Description: Environment data Language Server version: Microsoft Python Language Server version 0.4.81.0 OS and version: macOS 10.15 (19A602) Python version (& distribution if applicable, e.g. Anaconda): '3.7.4 (default, Sep 7 2019, 18:27:02) \n[Clan...
Open Graph Description: Environment data Language Server version: Microsoft Python Language Server version 0.4.81.0 OS and version: macOS 10.15 (19A602) Python version (& distribution if applicable, e.g. Anaconda): '3.7.4...
X Description: Environment data Language Server version: Microsoft Python Language Server version 0.4.81.0 OS and version: macOS 10.15 (19A602) Python version (& distribution if applicable, e.g. Anaconda): ...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/1732
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Undefined variable: 'str' as part of correct type annotation","articleBody":"\u003c!-- \r\nRead the guidelines for filing an issue first. \r\n\r\nhttps://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#filing-an-issue\r\n-->\r\n\r\n## Environment data\r\n\u003c!--\r\nTo find your version: \r\n\r\nSelect \"View: Toggle Output\" from the command palette (Ctrl+Shift+P on Windows/Linux, Command+Shift+P on macOS), then select \"Python\" in the dropdown on the right (\"Python Language Server\" if running Insiders build of VS Code). Look for the line Microsoft Python Language Server version X in the console.\r\n-->\r\n\r\n- Language Server version: Microsoft Python Language Server version 0.4.81.0 \r\n- OS and version: macOS 10.15 (19A602)\r\n- Python version (& distribution if applicable, e.g. Anaconda): '3.7.4 (default, Sep 7 2019, 18:27:02) \\n[Clang 10.0.1 (clang-1001.0.46.4)]'\r\n\r\n\r\n## Expected behaviour\r\n\r\nNo error message\r\n\r\n## Actual behaviour\r\n\r\n`Undefined variable: 'str'` as part of correct type annotation\r\n\r\n\r\n\r\n(other errors are unrelated)\r\n\r\nPotentially related: https://github.com/microsoft/python-language-server/issues/1453\r\n\r\n## Logs\r\n\r\n\u003c!-- \r\nEnable trace logging by adding \"python.analysis.logLevel\": \"Trace\" to your settings.json configuration file.\r\n\r\nAdding this will cause a large amount of info to be printed to the Python output panel. This should not be left long term, as the performance impact of the logging is significant.\r\n-->\r\n\r\nhttps://gist.github.com/max-sixty/630b88f44038174dc46229edc51734b9\r\n\r\nReproducible from [`dataarray.py` on xarray master](https://github.com/pydata/xarray/blob/master/xarray/core/dataarray.py), if anyone wants a full repro\r\n\r\nThank you!\r\n","author":{"url":"https://github.com/max-sixty","@type":"Person","name":"max-sixty"},"datePublished":"2019-10-31T21:11:56Z","url":"https://github.com/microsoft/python-language-server/issues/1732"}
| 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:7f35b459-d00a-d9ac-d247-b546f6dd9321 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C44A:19DC88:5CEC69:7EA494:6AFE6182 |
| html-safe-nonce | b4a67e57b7b70ec47c1f8bfbcda5765c61d4e880cc69a1c4040ee74f977f0c7c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDRBOjE5REM4ODo1Q0VDNjk6N0VBNDk0OjZBRkU2MTgyIiwidmlzaXRvcl9pZCI6IjI2MDU1NDAzMzEzNjU0OTEwNzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0d397aad09d3a84eea88936950fad07e16164ebf8b2aca44b7204baa9890cb41 |
| hovercard-subject-tag | issue:515749418 |
| 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/1732/issue_layout |
| twitter:image | https://opengraph.githubassets.com/64946637888b67962260ed8b50851501222634fe282c4195f995d9903fb49903/microsoft/python-language-server/issues/1732 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/64946637888b67962260ed8b50851501222634fe282c4195f995d9903fb49903/microsoft/python-language-server/issues/1732 |
| og:image:alt | Environment data Language Server version: Microsoft Python Language Server version 0.4.81.0 OS and version: macOS 10.15 (19A602) Python version (& distribution if applicable, e.g. Anaconda): '3.7.4... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | max-sixty |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| 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 | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width