fix: Resolve linting issues in MCP integration

- Replace deprecated typing.Dict/List with built-in dict/list
- Fix boolean comparisons (== True/False) to direct checks
- Remove unused variables in demo script
- Update type annotations to use modern Python syntax

All pre-commit hooks should now pass.
This commit is contained in:
aakash
2025-10-06 02:23:55 -07:00
parent 1fdc9dfbfa
commit 98cdcf600b
7 changed files with 25 additions and 27 deletions

View File

@@ -32,7 +32,7 @@ async def demo_slack_mcp():
# This would typically use a real MCP server command
# For demo purposes, we show what the command would look like
slack_app = SlackMCPRAG()
# slack_app = SlackMCPRAG() # Would be used for actual testing
# Simulate command line arguments for testing
class MockArgs:
@@ -71,7 +71,7 @@ async def demo_twitter_mcp():
print("\n1. Testing Twitter MCP server connection...")
twitter_app = TwitterMCPRAG()
# twitter_app = TwitterMCPRAG() # Would be used for actual testing
class MockArgs:
mcp_server = "twitter-mcp-server"