Title: Function return type is not compatible with usage · Issue #921 · bpython/bpython · GitHub
Open Graph Title: Function return type is not compatible with usage · Issue #921 · bpython/bpython
X Title: Function return type is not compatible with usage · Issue #921 · bpython/bpython
Description: bpython/bpython/autocomplete.py Lines 451 to 452 in b66a29f def locate(self, current_offset, line) -> Union[LinePart, None]: return lineparts.current_dict_key(current_offset, line) Function above declares a possible None return type. Bel...
Open Graph Description: bpython/bpython/autocomplete.py Lines 451 to 452 in b66a29f def locate(self, current_offset, line) -> Union[LinePart, None]: return lineparts.current_dict_key(current_offset, line) Function above d...
X Description: bpython/bpython/autocomplete.py Lines 451 to 452 in b66a29f def locate(self, current_offset, line) -> Union[LinePart, None]: return lineparts.current_dict_key(current_offset, line) Function abov...
Opengraph URL: https://github.com/bpython/bpython/issues/921
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Function return type is not compatible with usage","articleBody":"https://github.com/bpython/bpython/blob/b66a29fde838f98a39c08ce1b94f6cc8b8c3e86d/bpython/autocomplete.py#L451-L452\r\n### Function above declares a possible `None` return type. Below are lines that unpack without checking the return value.\r\nhttps://github.com/bpython/bpython/blob/b66a29fde838f98a39c08ce1b94f6cc8b8c3e86d/bpython/repl.py#L280-L282\r\nhttps://github.com/bpython/bpython/blob/b66a29fde838f98a39c08ce1b94f6cc8b8c3e86d/bpython/repl.py#L322-L324","author":{"url":"https://github.com/arian-deimling","@type":"Person","name":"arian-deimling"},"datePublished":"2021-09-29T02:50:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/921/bpython/issues/921"}
| 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:00a16713-a6e4-6f02-6e01-15ea418a6cf0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC64:252C46:2248AE:2E3690:696969BC |
| html-safe-nonce | 40f0cbc6435eaf9e3efaf7ffa8b6b5485c8280419842299a48ac3d775db2e408 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzY0OjI1MkM0NjoyMjQ4QUU6MkUzNjkwOjY5Njk2OUJDIiwidmlzaXRvcl9pZCI6Ijc2Nzk5MTIzOTYxOTY1MDYwNDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ad427e5e22c7cd892955300a0388e266cf67f0bad4c91fd9943e419af6a2294a |
| hovercard-subject-tag | issue:1010421170 |
| 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/bpython/bpython/921/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c1e3a1c1fbc4adb1d4ee8ee2fa3d4ef484b4e84ddc9d8a1b7ffb1924d41316b2/bpython/bpython/issues/921 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c1e3a1c1fbc4adb1d4ee8ee2fa3d4ef484b4e84ddc9d8a1b7ffb1924d41316b2/bpython/bpython/issues/921 |
| og:image:alt | bpython/bpython/autocomplete.py Lines 451 to 452 in b66a29f def locate(self, current_offset, line) -> Union[LinePart, None]: return lineparts.current_dict_key(current_offset, line) Function above d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arian-deimling |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| turbo-cache-control | no-preview |
| go-import | github.com/bpython/bpython git https://github.com/bpython/bpython.git |
| octolytics-dimension-user_id | 8071396 |
| octolytics-dimension-user_login | bpython |
| octolytics-dimension-repository_id | 21508865 |
| octolytics-dimension-repository_nwo | bpython/bpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21508865 |
| octolytics-dimension-repository_network_root_nwo | bpython/bpython |
| 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 | ec4d88fbe7ed62446d90b0a6d8e6db4248a8f8b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width