You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4d2a939
Browse filesBrowse the repository at this point in the historyBrowse files
fix: Resolve pyright type errors in ResourceContents tests
Fixed type narrowing issues in test files that were accessing attributes
on union types without proper isinstance checks. The FastMCP read_resource
method returns ReadResourceContents | TextResourceContents | BlobResourceContents,
requiring explicit type checking before accessing type-specific attributes.
Changes:
- Added proper type narrowing with isinstance() checks in all affected tests
- Fixed incorrect Resource base class usage in test files
- Corrected AnyUrl constructor usage in resource creation
- Updated lowlevel example to avoid delegation conflicts
All tests pass and pyright reports 0 errors.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments