Add @final to all methods in ToolSpec and Tool implementations#1432
Merged
nathanjmcdougall merged 4 commits intomainfrom Mar 20, 2026
Merged
Add @final to all methods in ToolSpec and Tool implementations#1432nathanjmcdougall merged 4 commits intomainfrom
@final to all methods in ToolSpec and Tool implementations#1432nathanjmcdougall merged 4 commits intomainfrom
Conversation
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com> Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/ac4205d5-03bc-4d8d-951a-bdf5271a13a7
Copilot
AI
changed the title
[WIP] Add @final to all methods in ToolSpec and Tool implementations
Add Mar 20, 2026
@final to all methods in ToolSpec and Tool implementations
Collaborator
|
@copilot please recommend/explain this in the CONTRIBUTING.md section on how to implement tools |
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com> Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/a307b5d3-0c33-4642-b872-8712d1c47ffc
Contributor
Author
Added documentation in commit a2e3c8e. The "Create the |
Removed example code for marking methods with `@typing.final` in `ToolSpec` subclass. Also remove outdated advice regarding URL (now in `ToolMeta`
nathanjmcdougall
approved these changes
Mar 20, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Copilot AI
added a commit
that referenced
this pull request
Mar 25, 2026
…t submodule contracts Closes #1432 Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com> Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/385f0827-605c-428f-8947-960907d3c5a9
nathanjmcdougall
added a commit
that referenced
this pull request
Mar 25, 2026
* Initial plan * fix: only exclude _version from top-level Import Linter contracts, not submodule contracts Closes #1432 Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com> Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/385f0827-605c-428f-8947-960907d3c5a9 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@finaldecorator to all methods in allToolSpecimplementation classes (11 spec files inimpl/spec/)@finaldecorator to all methods in allToolimplementation classes (11 base files inimpl/base/)@propertycombined with@final,@staticmethodcombined with@final,__init__methods@finalrequirement in CONTRIBUTING.md "Adding a new tool" sectionOriginal prompt
@finalto all methods in allToolSpecandToolimplementations #1431✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.