Title: Add `@final` to all methods in `ToolSpec` and `Tool` implementations by Copilot · Pull Request #1432 · usethis-python/usethis-python · GitHub
Open Graph Title: Add `@final` to all methods in `ToolSpec` and `Tool` implementations by Copilot · Pull Request #1432 · usethis-python/usethis-python
X Title: Add `@final` to all methods in `ToolSpec` and `Tool` implementations by Copilot · Pull Request #1432 · usethis-python/usethis-python
Description: Add @final decorator to all methods in all ToolSpec implementation classes (11 spec files in impl/spec/)
Add @final decorator to all methods in all Tool implementation classes (11 base files in impl/base/)
Handle special cases: @property combined with @final, @staticmethod combined with @final, __init__ methods
Run static checks to validate type-checking compliance (prek + basedpyright: 0 errors)
Run targeted tests to ensure no regressions (100 passed, 11 skipped)
Document @final requirement in CONTRIBUTING.md "Adding a new tool" section
Code review and security scan (no issues)
Original prompt
This section details on the original issue you should resolve
Open Graph Description: Add @final decorator to all methods in all ToolSpec implementation classes (11 spec files in impl/spec/) Add @final decorator to all methods in all Tool implementation classes (11 base files in im...
X Description: Add @final decorator to all methods in all ToolSpec implementation classes (11 spec files in impl/spec/) Add @final decorator to all methods in all Tool implementation classes (11 base files in im...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1432
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:213f0a17-ca9a-1d40-d70a-96af3ea83ce5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8C6A:2526F2:A9284E:E3D033:6A4D431E |
| html-safe-nonce | 7fe4822d4d737d5c33e862b13b16ac3648d499120ff99bfa6230758b3247387b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzZBOjI1MjZGMjpBOTI4NEU6RTNEMDMzOjZBNEQ0MzFFIiwidmlzaXRvcl9pZCI6IjEzNzUyMzcyOTg2MjMxNjkzMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5c3c5ad9a011577fdf87b9ce4e64552ebc3aa8442feb58a691d4731e45f27bc4 |
| hovercard-subject-tag | pull_request:3426258601 |
| 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/usethis-python/usethis-python/pull/1432/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | Add @final decorator to all methods in all ToolSpec implementation classes (11 spec files in impl/spec/) Add @final decorator to all methods in all Tool implementation classes (11 base files in im... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 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 | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width