Skip to content

pyright on lint next fails #496

@ultmaster

Description

@ultmaster
Run uv run --locked --no-sync pyright -p pyrightconfig.json
/home/runner/work/agent-lightning/agent-lightning/agentlightning/instrumentation/weave.py
  /home/runner/work/agent-lightning/agent-lightning/agentlightning/instrumentation/weave.py:306:9 - error: Return type is unknown (reportUnknownParameterType)
  /home/runner/work/agent-lightning/agent-lightning/agentlightning/instrumentation/weave.py:306:27 - error: Type of parameter "req" is unknown (reportUnknownParameterType)
  /home/runner/work/agent-lightning/agent-lightning/agentlightning/instrumentation/weave.py:306:32 - error: Type of "OtelExportReq" is unknown (reportUnknownMemberType)
  /home/runner/work/agent-lightning/agent-lightning/agentlightning/instrumentation/weave.py:306:36 - error: "OtelExportReq" is not a known attribute of module "weave.trace_server.trace_server_interface" (reportAttributeAccessIssue)
  /home/runner/work/agent-lightning/agent-lightning/agentlightning/instrumentation/weave.py:306:54 - error: Type of "OtelExportRes" is unknown (reportUnknownMemberType)
  /home/runner/work/agent-lightning/agent-lightning/agentlightning/instrumentation/weave.py:306:58 - error: "OtelExportRes" is not a known attribute of module "weave.trace_server.trace_server_interface" (reportAttributeAccessIssue)
  /home/runner/work/agent-lightning/agent-lightning/agentlightning/instrumentation/weave.py:307:16 - error: Type of "OtelExportRes" is unknown (reportUnknownMemberType)
  /home/runner/work/agent-lightning/agent-lightning/agentlightning/instrumentation/weave.py:307:16 - error: Return type is unknown (reportUnknownVariableType)
  /home/runner/work/agent-lightning/agent-lightning/agentlightning/instrumentation/weave.py:307:20 - error: "OtelExportRes" is not a known attribute of module "weave.trace_server.trace_server_interface" (reportAttributeAccessIssue)
/home/runner/work/agent-lightning/agent-lightning/agentlightning/tracer/weave.py
  /home/runner/work/agent-lightning/agent-lightning/agentlightning/tracer/weave.py:244:24 - error: Cannot instantiate abstract class "WeaveTracerManagedTraceServer"
    "ObjectInterface.eval_results_query" is not implemented
    "TraceServerInterface.annotation_queue_delete" is not implemented
    and 1 more... (reportAbstractUsage)
10 errors, 0 warnings, 0 informations

Run uv upgrade first to reproduce. I think some signatures have changed. When fixing, try not to break backward compat.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions