Title: Automatic stub file generation by g-bauer · Pull Request #321 · feos-org/feos · GitHub
Open Graph Title: Automatic stub file generation by g-bauer · Pull Request #321 · feos-org/feos
X Title: Automatic stub file generation by g-bauer · Pull Request #321 · feos-org/feos
Description: Work in progress of automatic stub file generation using experimental-inspect and pyo3-introspection. See the documentation and the related issue. Currently missing Proper support for enum variants. Currently doesn't show variants for autocompletion. Docstrings are currently not added to stubs. They seem to work in jupyter and marimo due to dynamically loading the docstrings. SIObject (PyObjects defined in other crates) - can be managed via custom signature Return types - can be managed via custom signature as well. How to use this Inside feos/py-feos: Generate cdylib via maturin Run cargo run --bin stub_gen. You might need to adjust the path. We could add a command line argument for this. The above command generates feos.pyi. Run maturin again. It will now include the stub file. (Look for 📖 Found type stub file at feos.pyi) GH Action Add stub generation step for wheel-test action. Load stub file in publishing action. In the future, this might be a feature of maturin Todo Check if stubs can be used with mkdocs
Open Graph Description: Work in progress of automatic stub file generation using experimental-inspect and pyo3-introspection. See the documentation and the related issue. Currently missing Proper support for enum variant...
X Description: Work in progress of automatic stub file generation using experimental-inspect and pyo3-introspection. See the documentation and the related issue. Currently missing Proper support for enum variant...
Opengraph URL: https://github.com/feos-org/feos/pull/321
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:e6586a08-1bbb-5caf-e229-3917880f8d83 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 9966:15165E:1649D3:1E9496:698EEE23 |
| html-safe-nonce | 71c01880bc4f9a804b34d2116e21a38d6a426f5687269c18c99c7c4a97be384d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTY2OjE1MTY1RToxNjQ5RDM6MUU5NDk2OjY5OEVFRTIzIiwidmlzaXRvcl9pZCI6IjYzNjc1ODUwNDQ0MTY4ODQyNTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cd53c7abdfd8b2574e9594c6a0d681ef8e756f2b640a04fe9ced54deca0a7193 |
| hovercard-subject-tag | pull_request:3021799963 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/feos-org/feos/pull/321/checks |
| twitter:image | https://avatars.githubusercontent.com/u/7261278?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/7261278?s=400&v=4 |
| og:image:alt | Work in progress of automatic stub file generation using experimental-inspect and pyo3-introspection. See the documentation and the related issue. Currently missing Proper support for enum variant... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/feos-org/feos git https://github.com/feos-org/feos.git |
| octolytics-dimension-user_id | 87855701 |
| octolytics-dimension-user_login | feos-org |
| octolytics-dimension-repository_id | 424905104 |
| octolytics-dimension-repository_nwo | feos-org/feos |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 424905104 |
| octolytics-dimension-repository_network_root_nwo | feos-org/feos |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 74ed479fe042e0ee79d00083dd248df8cc447655 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width