Skip to content

Pyright: "message" is possibly unbound #59

@tito

Description

@tito

In anthropic chat tracer:

            elif type(chunk) is MessageStopEvent:
                input_tokens = message.usage.input_tokens
                output_tokens = message.usage.output_tokens

First the variable message is not set from chunk.message, and second MessageStopEvent does not have chunk.messages

Metadata

Metadata

Assignees

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