Skip to content

Commit

Permalink
Improve typing
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter committed Aug 3, 2024
1 parent 40f4715 commit f1ada62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion home_assistant_datasets/tool/assist/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def pytest_generate_tests(metafunc: Any) -> None:


@pytest.fixture(autouse=True)
def restore_tz() -> Generator[None, None]:
def restore_tz() -> Generator[None, None, None]:
yield
# Home Assistant teardown seems to run too soon and expects this so try to
# patch it in first.
Expand Down
2 changes: 1 addition & 1 deletion script/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sys


def main():
def main() -> None:
lines = sys.stdin.readlines()
for line in lines:
record = json.loads(line)
Expand Down
2 changes: 1 addition & 1 deletion script/human_eval_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def main() -> None:
print(yaml.dump(model_results, sort_keys=True, explicit_start=True))

if args.samples:
limited_samples = {}
limited_samples: dict[str, dict[str, str]] = {}
for model_id in model_samples:
limited_samples[model_id] = {}
for label in model_samples[model_id]:
Expand Down

0 comments on commit f1ada62

Please sign in to comment.