Skip to content

llama : tokenizer unicode codepoint categories #201

llama : tokenizer unicode codepoint categories

llama : tokenizer unicode codepoint categories #201

Triggered via pull request July 20, 2024 21:52
Status Failure
Total duration 1m 26s
Artifacts

python-type-check.yml

on: pull_request
pyright type-check
1m 16s
pyright type-check
Fit to window
Zoom out
Zoom in

Annotations

5 errors
pyright type-check: tests/test-tokenizer-random.py#L128
Argument of type "bytes | str" cannot be assigned to parameter "object" of type "ReadableBuffer" in function "__new__"   Type "bytes | str" is incompatible with type "ReadableBuffer"     "str" is incompatible with protocol "Buffer"       "__buffer__" is not present (reportArgumentType)
pyright type-check: tests/test-tokenizer-random.py#L172
No overloads for "__setitem__" match the provided arguments (reportCallIssue)
pyright type-check: tests/test-tokenizer-random.py#L172
Argument of type "str" cannot be assigned to parameter "value" of type "None" in function "__setitem__"   "str" is incompatible with "None" (reportArgumentType)
pyright type-check: tests/test-tokenizer-random.py#L173
Expression of type "List[str] | list[None]" is incompatible with return type "list[str]"   Type "List[str] | list[None]" is incompatible with type "list[str]"     "list[None]" is incompatible with "list[str]"       Type parameter "_T@list" is invariant, but "None" is not the same as "str"       Consider switching from "list" to "Sequence" which is covariant (reportReturnType)
pyright type-check
4 errors