Title: fix: add explicit type annotation for `call_tool` decorator by jayhemnani9910 · Pull Request #1826 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: fix: add explicit type annotation for `call_tool` decorator by jayhemnani9910 · Pull Request #1826 · modelcontextprotocol/python-sdk
X Title: fix: add explicit type annotation for `call_tool` decorator by jayhemnani9910 · Pull Request #1826 · modelcontextprotocol/python-sdk
Description: This pull request introduces a type alias to clarify and simplify the function signature of handlers registered with call_tool in the server.py module. The main change is the introduction and use of the CallToolHandler type alias, which improves code readability and maintainability. Type hinting and handler signature improvements: Added a CallToolHandler type alias to explicitly define the expected function signature for call tool handler functions in server.py. Updated the call_tool decorator to use the new CallToolHandler type alias, replacing the previous inline type definition for better clarity and consistency.
Open Graph Description: This pull request introduces a type alias to clarify and simplify the function signature of handlers registered with call_tool in the server.py module. The main change is the introduction and use o...
X Description: This pull request introduces a type alias to clarify and simplify the function signature of handlers registered with call_tool in the server.py module. The main change is the introduction and use o...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/1826
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f67d0e68-b23b-84b9-4705-088f3faf467f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CE0E:248D3C:3E8A9A5:54E02E3:6A5DF1AC |
| html-safe-nonce | a8f12ff72f8061ed55b6ad3842467f2ec435b4e315d88304d65a748ef2db9ab1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTBFOjI0OEQzQzozRThBOUE1OjU0RTAyRTM6NkE1REYxQUMiLCJ2aXNpdG9yX2lkIjoiOTEzNTAzMzA5NTQ2MDYxNDU3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 84a2445101b73a06b629e62c0d28a08263ef15a2286ec242d20fdd051897af91 |
| hovercard-subject-tag | pull_request:3144321808 |
| 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/modelcontextprotocol/python-sdk/pull/1826/files |
| twitter:image | https://avatars.githubusercontent.com/u/193022578?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/193022578?s=400&v=4 |
| og:image:alt | This pull request introduces a type alias to clarify and simplify the function signature of handlers registered with call_tool in the server.py module. The main change is the introduction and use o... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f8603048a7a8270fc5b845c28ec71e80a9a899268387bcf65814ee1b51c0cc4 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e2a5561aeb049d0632a92906af784af5d414c603 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width