fix: Resolve F401 and F841 lint errors in A2A integration

- Use proper noqa comment placement for optional imports in __init__.py
- Fix unused variable in a2a/__init__.py exception handling
- All lint checks now pass locally

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2025-06-07 00:04:16 +00:00
parent 4b9426fbcc
commit 6806803bf8
2 changed files with 6 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ try:
"start_a2a_server",
"create_a2a_app"
]
except ImportError as e:
except ImportError:
import warnings
warnings.warn(
"A2A integration requires the 'a2a' extra dependency. "