Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtruong committed Nov 5, 2024
1 parent 5218be0 commit 252c51a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ reportPossiblyUnboundVariable = false
reportOptionalMemberAccess = false
reportArgumentType = false
reportCallIssue = false
reportRedeclaration = false

[tool.mypy]
warn_unused_configs = true
Expand Down
2 changes: 1 addition & 1 deletion weave/integrations/langchain/langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion weave/integrations/llamaindex/llamaindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand Down
2 changes: 1 addition & 1 deletion weave/trace/op.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 252c51a

Please sign in to comment.