Skip to content

Commit 4094b63

Browse files
Zie619claude
andcommitted
fix(mypy): remove stale type: ignore comments for langchain and crewai imports
CI installs langchain-core and crewai as dev dependencies, so mypy can resolve these imports successfully. The import-not-found and misc ignores are no longer needed and trigger warn_unused_ignores under strict mode. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9d537b4 commit 4094b63

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

trusera_sdk/integrations/crewai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
logger = logging.getLogger(__name__)
1010

1111
try:
12-
from crewai import Agent, Task # type: ignore[import-not-found] # noqa: F401
12+
from crewai import Agent, Task # noqa: F401
1313

1414
CREWAI_AVAILABLE = True
1515
except ImportError:

trusera_sdk/integrations/langchain.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
_METADATA_TTL_SECONDS = 300 # 5 minutes
1515

1616
try:
17-
from langchain_core.callbacks import BaseCallbackHandler # type: ignore[import-not-found]
18-
from langchain_core.outputs import LLMResult # type: ignore[import-not-found]
17+
from langchain_core.callbacks import BaseCallbackHandler
18+
from langchain_core.outputs import LLMResult
1919

2020
LANGCHAIN_AVAILABLE = True
2121
except ImportError:
@@ -25,7 +25,7 @@
2525

2626
if LANGCHAIN_AVAILABLE:
2727

28-
class TruseraCallbackHandler(BaseCallbackHandler): # type: ignore[misc]
28+
class TruseraCallbackHandler(BaseCallbackHandler):
2929
"""
3030
LangChain callback handler that sends events to Trusera.
3131

0 commit comments

Comments
 (0)