Don't compute confidence if the LLM does not return logprobs in the r… #23
Annotations
10 errors
Run astral-sh/ruff-action@v1:
src/autolabel/confidence.py#L22
src/autolabel/confidence.py:22:30: F401 `autolabel.schema.ConfidenceCacheEntry` imported but unused
|
Run astral-sh/ruff-action@v1:
src/autolabel/confidence.py#L33
src/autolabel/confidence.py:33:19: RUF013 PEP 484 prohibits implicit `Optional`
|
Run astral-sh/ruff-action@v1:
src/autolabel/confidence.py#L34
src/autolabel/confidence.py:34:14: FA100 Add `from __future__ import annotations` to simplify `typing.Optional`
|
Run astral-sh/ruff-action@v1:
src/autolabel/confidence.py#L35
src/autolabel/confidence.py:35:16: FA100 Add `from __future__ import annotations` to simplify `typing.Optional`
|
Run astral-sh/ruff-action@v1:
src/autolabel/confidence.py#L57
src/autolabel/confidence.py:57:9: ANN003 Missing type annotation for `**kwargs`
|
Run astral-sh/ruff-action@v1:
src/autolabel/confidence.py#L57
src/autolabel/confidence.py:57:11: ARG002 Unused method argument: `kwargs`
|
Run astral-sh/ruff-action@v1:
src/autolabel/confidence.py#L59
src/autolabel/confidence.py:59:9: D404 First word of the docstring should not be "This"
|
Run astral-sh/ruff-action@v1:
src/autolabel/confidence.py#L67
src/autolabel/confidence.py:67:25: RUF015 Prefer `next(iter(token.keys()))` over single element slice
|
Run astral-sh/ruff-action@v1:
src/autolabel/confidence.py#L85
src/autolabel/confidence.py:85:9: ANN003 Missing type annotation for `**kwargs`
|
Run astral-sh/ruff-action@v1:
src/autolabel/confidence.py#L85
src/autolabel/confidence.py:85:11: ARG002 Unused method argument: `kwargs`
|
Loading