Fix lint and type-checker issues in OAuth2 implementation

- Remove unused imports (List, Optional, MagicMock)
- Fix type annotation: change 'any' to 'Any' in oauth2_token_manager.py
- All OAuth2 tests still pass after fixes

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2025-07-07 18:01:35 +00:00
parent ac1080afd8
commit 03ee4c59eb
3 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ import requests
import tempfile
import time
from pathlib import Path
from unittest.mock import Mock, patch, MagicMock
from unittest.mock import Mock, patch
from crewai.llm import LLM
from crewai.llms.oauth2_config import OAuth2Config, OAuth2ConfigLoader
from crewai.llms.oauth2_token_manager import OAuth2TokenManager