Title: Switch-up strategy for ensuring dynamic vars end up in LSP by tychedelia · Pull Request #151 · processing/libprocessing · GitHub
Open Graph Title: Switch-up strategy for ensuring dynamic vars end up in LSP by tychedelia · Pull Request #151 · processing/libprocessing
X Title: Switch-up strategy for ensuring dynamic vars end up in LSP by tychedelia · Pull Request #151 · processing/libprocessing
Description: Our original goal was to support both: from mewnala import * print(width) # prints the default 100 import mewnala as mn print(mn.width()) # more "honest" that this a runtime value, i.e. callable Unfortunately, for stub generation and for LSP support, this is problematic as there isn't a good way to have an item that is both a variable and/or a function. This PR changes our strategy -- everything is a variable/attribute. Having "magic" attr getters on a module seems to be a bit less Pythonic, but after all that's what properties are so it's fine, I think.
Open Graph Description: Our original goal was to support both: from mewnala import * print(width) # prints the default 100 import mewnala as mn print(mn.width()) # more "honest" that this a runtime value, i.e....
X Description: Our original goal was to support both: from mewnala import * print(width) # prints the default 100 import mewnala as mn print(mn.width()) # more "honest" that this a runtime val...
Opengraph URL: https://github.com/processing/libprocessing/pull/151
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:dcc7f003-497b-7b72-0f4a-e3b4b2646608 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 949C:2F6413:9A73DC4:D018A18:6A5E7EF3 |
| html-safe-nonce | ceda5a54987482d73deb72eb46abd25713c49633682e32d424c772a7e56883bf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDlDOjJGNjQxMzo5QTczREM0OkQwMThBMTg6NkE1RTdFRjMiLCJ2aXNpdG9yX2lkIjoiNTAyMjU0NjczNjM5MDc2NjMyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3be61c303bf5e752aeb9b850ee08c3f0b263c6eb7c2e4fcad782027d66772f0c |
| hovercard-subject-tag | pull_request:3592956642 |
| 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/processing/libprocessing/pull/151/files |
| twitter:image | https://avatars.githubusercontent.com/u/10366310?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10366310?s=400&v=4 |
| og:image:alt | Our original goal was to support both: from mewnala import * print(width) # prints the default 100 import mewnala as mn print(mn.width()) # more "honest" that this a runtime value, i.e.... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 71950bbe6bf7e15662b868c102fed9d1682c29a05970d9b2daa2e4dd3522c52e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/processing/libprocessing git https://github.com/processing/libprocessing.git |
| octolytics-dimension-user_id | 1617169 |
| octolytics-dimension-user_login | processing |
| octolytics-dimension-repository_id | 1101329545 |
| octolytics-dimension-repository_nwo | processing/libprocessing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1101329545 |
| octolytics-dimension-repository_network_root_nwo | processing/libprocessing |
| 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 | 7514606601325843bc1c464d2d8bf5fe9af2c154 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width