Title: Improve book-keeping on which `Tool` methods should be considered "usually bespoke" · Issue #1316 · usethis-python/usethis-python · GitHub
Open Graph Title: Improve book-keeping on which `Tool` methods should be considered "usually bespoke" · Issue #1316 · usethis-python/usethis-python
X Title: Improve book-keeping on which `Tool` methods should be considered "usually bespoke" · Issue #1316 · usethis-python/usethis-python
Description: Only two Tool methods do not provide a default implementation: .print_how_to_use() and the .name property. When subclassing a tool, it's not always obvious which methods need over-ridden, compared to which ones provided nicely abstracted...
Open Graph Description: Only two Tool methods do not provide a default implementation: .print_how_to_use() and the .name property. When subclassing a tool, it's not always obvious which methods need over-ridden, compared ...
X Description: Only two Tool methods do not provide a default implementation: .print_how_to_use() and the .name property. When subclassing a tool, it's not always obvious which methods need over-ridden, compa...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/1316
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve book-keeping on which `Tool` methods should be considered \"usually bespoke\"","articleBody":"Only two `Tool` methods do not provide a default implementation: `.print_how_to_use()` and the `.name` property.\n\nWhen subclassing a tool, it's not always obvious which methods need over-ridden, compared to which ones provided nicely abstracted defaults, like `is_used`. Of course, any tool implementation is free to over-ride any default method. But for some of them, we expect it as a matter of course - e.g. `get_dev_deps` and `default_command`. It would be good to have some formal separation for these.\n\nThe ultimate objective is #856: to provide easy guidance on how to add new tools. But I don't want to hard-code a list of methods in the `CONTRIBUTING.md` file. I would much prefer to have some structural demarcation in the code, but this will need some design. Perhaps related to #1315.","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2026-02-25T23:48:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1316/usethis-python/issues/1316"}
| 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:ca04b29b-5b12-66db-5470-679243995ff1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A804:348D14:A4FE3F:E5EEB7:6A4C9F1D |
| html-safe-nonce | 604e92e4fc280496ca1af07e2c5f0e6d723361c4c37f64e2649e13c4d0b61715 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODA0OjM0OEQxNDpBNEZFM0Y6RTVFRUI3OjZBNEM5RjFEIiwidmlzaXRvcl9pZCI6Ijc3MjU5NTYzODI2NTQ3NjY4NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | de695485fe12040a78828dd128f8f36841b30a37f8b1fce490c36c4c3daa4d63 |
| hovercard-subject-tag | issue:3992429930 |
| 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/usethis-python/usethis-python/1316/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4e077b936edafcb74600cbcc6dfb744ad356eddc68a450d93998d0806b9cb84d/usethis-python/usethis-python/issues/1316 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4e077b936edafcb74600cbcc6dfb744ad356eddc68a450d93998d0806b9cb84d/usethis-python/usethis-python/issues/1316 |
| og:image:alt | Only two Tool methods do not provide a default implementation: .print_how_to_use() and the .name property. When subclassing a tool, it's not always obvious which methods need over-ridden, compared ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nathanjmcdougall |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| 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 | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width