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:6f100abd-3577-6440-d470-2107c00e6e65 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D534:10A28F:785FD7:9CD258:6A5EC402 |
| html-safe-nonce | cf9dac070b33988752234e9146c48c24f4d960b1c29fd4ae7446984a60093561 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTM0OjEwQTI4Rjo3ODVGRDc6OUNEMjU4OjZBNUVDNDAyIiwidmlzaXRvcl9pZCI6IjE3Mzk0MDk3MzE3MjU3MzkwMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4b6113cef1a19d1b08329bc1d8b4fe650236c487f479d99ab575f51a404bd50b |
| 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 | fbe2b3a3baf2f0e0ac1671a4d190d9de098dcf218eb73137ad46da364d3df398 |
| 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 | 0cd844a7ab298ec8d89b66ef4b195d158229d335 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width