Title: Feature: Add open close parentheses for attribute suggestions that are methods by rybarczykj · Pull Request #840 · bpython/bpython · GitHub
Open Graph Title: Feature: Add open close parentheses for attribute suggestions that are methods by rybarczykj · Pull Request #840 · bpython/bpython
X Title: Feature: Add open close parentheses for attribute suggestions that are methods by rybarczykj · Pull Request #840 · bpython/bpython
Description: TLDR: Parenthesis on attribute suggestions so it's clear which attributes are methods Slight modification to how parentheses are autofilled Sorry for the bad quality gifs. I should stop using GIPHY for this. Native function completion Current behavior: open parenthesis in suggestion and autofill. You have to type something after the paren before you can see the method signature. My proposal: open AND close parens in suggestion, no parens in autofill. Now typing the open paren shows the method signature. This might mess with some people's muscle memory since it changes what's autofilled. Attributute completion Current behavior: no parens in suggestion or autofill. You can't tell what is a method or otherwise. My proposal: open close parens in suggestion, no parens in autofill. Very clear which attrs are methods. Since this only changes the infobox, it shouldn't mess with anyone's muscle memory. If this seems worth implementing, I'll need to fix some tests. Right now, tests expect matches that look like "math.cos" or "any(", but they'll be getting matches that look like "math.cos()" and "any()". Also I'm not sure if I implemented this the best way. The way I did it, the actual match string is altered to have parens. Maybe it's better to leave the match as-is, but add parenthesis only on the front end. This would require some passing around of information. Feedback appreciated.
Open Graph Description: TLDR: Parenthesis on attribute suggestions so it's clear which attributes are methods Slight modification to how parentheses are autofilled Sorry for the bad quality gifs. I should stop using...
X Description: TLDR: Parenthesis on attribute suggestions so it's clear which attributes are methods Slight modification to how parentheses are autofilled Sorry for the bad quality gifs. I should stop u...
Opengraph URL: https://github.com/bpython/bpython/pull/840
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5622351f-317f-5425-f2ed-363280410409 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 98C4:BBE3F:137D162:1B2F413:6968B083 |
| html-safe-nonce | 2cd71f691a9dfea6aa0bb41e1f310a617766371e0d62cb3475e3c3d9e19e28c9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEM0OkJCRTNGOjEzN0QxNjI6MUIyRjQxMzo2OTY4QjA4MyIsInZpc2l0b3JfaWQiOiI3MDMwNzM4NDU3NDU3MTExMTcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 535563e0d33dd62453c3d8e358685c7b38fd509037001d757691cf9e3c241cfc |
| hovercard-subject-tag | pull_request:464204021 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/bpython/bpython/pull/840/files |
| twitter:image | https://avatars.githubusercontent.com/u/48132522?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/48132522?s=400&v=4 |
| og:image:alt | TLDR: Parenthesis on attribute suggestions so it's clear which attributes are methods Slight modification to how parentheses are autofilled Sorry for the bad quality gifs. I should stop using... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdc7c66bd36a6c12eb8e771e806db863266e573fc299e77f27505a768d4f8a98 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3223a6503d318917691422cdadfbe16cd8fb21e5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width