diff --git a/pyproject.toml b/pyproject.toml index d1783ad5cb9e..b89d442888f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -195,7 +195,6 @@ reportPossiblyUnboundVariable = false reportOptionalMemberAccess = false reportArgumentType = false reportCallIssue = false -reportRedeclaration = false [tool.mypy] warn_unused_configs = true diff --git a/weave/integrations/langchain/langchain.py b/weave/integrations/langchain/langchain.py index 8dd184e79af2..ea291a5d956a 100644 --- a/weave/integrations/langchain/langchain.py +++ b/weave/integrations/langchain/langchain.py @@ -89,7 +89,7 @@ def _run_to_dict(run: Run, as_input: bool = False) -> dict: run_dict = {k: v for k, v in run_dict.items() if v} return run_dict - class WeaveTracer(BaseTracer): + class WeaveTracer(BaseTracer): # pyright: ignore[reportRedeclaration] run_inline: bool = True def __init__(self, **kwargs: Any) -> None: diff --git a/weave/integrations/llamaindex/llamaindex.py b/weave/integrations/llamaindex/llamaindex.py index 4abadb6cb7aa..0427dfb2dccc 100644 --- a/weave/integrations/llamaindex/llamaindex.py +++ b/weave/integrations/llamaindex/llamaindex.py @@ -25,7 +25,7 @@ if not import_failed: - class WeaveCallbackHandler(BaseCallbackHandler): + class WeaveCallbackHandler(BaseCallbackHandler): # pyright: ignore[reportRedeclaration] """Base callback handler that can be used to track event starts and ends.""" def __init__( diff --git a/weave/trace/op.py b/weave/trace/op.py index ae85d65e7b83..94d072ed3264 100644 --- a/weave/trace/op.py +++ b/weave/trace/op.py @@ -611,7 +611,7 @@ def create_wrapper(func: Callable) -> Op: if is_async: @wraps(func) - async def wrapper(*args: Any, **kwargs: Any) -> Any: + async def wrapper(*args: Any, **kwargs: Any) -> Any: # pyright: ignore[reportRedeclaration] res, _ = await _do_call_async( cast(Op, wrapper), *args, __should_raise=True, **kwargs )