Title: None is being flagged as used before assignment · Issue #335 · microsoft/python-language-server · GitHub
Open Graph Title: None is being flagged as used before assignment · Issue #335 · microsoft/python-language-server
X Title: None is being flagged as used before assignment · Issue #335 · microsoft/python-language-server
Description: microsoft/vscode-python#3117 When None is used in a type hint it gets flagged as being used before assignment. In the following example every use of None is being flagged. def f(b:None) -> None: b: None
Open Graph Description: microsoft/vscode-python#3117 When None is used in a type hint it gets flagged as being used before assignment. In the following example every use of None is being flagged. def f(b:None) -> None: b:...
X Description: microsoft/vscode-python#3117 When None is used in a type hint it gets flagged as being used before assignment. In the following example every use of None is being flagged. def f(b:None) -> None:...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/335
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"None is being flagged as used before assignment ","articleBody":"Microsoft/vscode-python#3117\r\n\r\nWhen `None` is used in a type hint it gets flagged as being used before assignment. In the following example every use of `None` is being flagged.\r\n\r\n```python\r\ndef f(b:None) -\u003e None:\r\n b: None\r\n```","author":{"url":"https://github.com/brettcannon","@type":"Person","name":"brettcannon"},"datePublished":"2018-11-01T21:37:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/335/python-language-server/issues/335"}
| 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:564fb4f1-ae81-4948-051c-36f1cd045941 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A354:710E:239CA:2F83F:6A4E223E |
| html-safe-nonce | 54148f24b7045ddaea9e2f269df4e9fe4649e151549af0cd23aa143bf6215552 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzU0OjcxMEU6MjM5Q0E6MkY4M0Y6NkE0RTIyM0UiLCJ2aXNpdG9yX2lkIjoiNTM0NTE2NTE0NjE1Mzk1MTgwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 48805ed64faccdf1c3811c5cbb85036c38445bc2af27aa84bb4194ceaac51480 |
| hovercard-subject-tag | issue:376581384 |
| 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/335/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a69f20c2f2c56e0bad0a0f625cedde130e6f93011aeb2a56dcfa52b791ed957/microsoft/python-language-server/issues/335 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a69f20c2f2c56e0bad0a0f625cedde130e6f93011aeb2a56dcfa52b791ed957/microsoft/python-language-server/issues/335 |
| og:image:alt | microsoft/vscode-python#3117 When None is used in a type hint it gets flagged as being used before assignment. In the following example every use of None is being flagged. def f(b:None) -> None: b:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brettcannon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | 5fe497b4815fcce3df76c0e246faa739a82c3124 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width