Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,8 @@ Repository = "https://github.com/Vedantgitbot/booth"
[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-data]
booth = ["py.typed"]

[tool.pytest.ini_options]
testpaths = ["tests"]
2 changes: 1 addition & 1 deletion src/booth/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def _evaluate(
if attempt.parse_ok and not attempt.passed_validation:
return None

if attempt.parse_ok and attempt.confidence >= threshold:
if attempt.parse_ok and attempt.confidence is not None and attempt.confidence >= threshold:
status = ACCEPTED if attempt_index == 0 else REPAIRED
return BoothResult(
answer=attempt.answer,
Expand Down
Empty file added src/booth/py.typed
Empty file.
Loading