-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Rename ResourceReference to ResourceTemplateReference #947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Those are breaking changes - fyi |
@Kludex , have type alias for this in case anyone is using it directly, any other use case is missing?
|
ah, then sorry, all good. |
thanks for checking!! |
src/mcp/types.py
Outdated
# Deprecated: Use ResourceTemplateReference instead | ||
ResourceReference = ResourceTemplateReference |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You want something like this:
# Deprecated: Use ResourceTemplateReference instead | |
ResourceReference = ResourceTemplateReference | |
@deprecated("`ResourceReference` is deprecated, you should use `ResourceTemplateReference`.") | |
class ResourceReference(ResourceTemplateReference): | |
"""A reference to a resource or resource template definition.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, thank you!
Closes #916
Details in modelcontextprotocol/modelcontextprotocol#639