Skip to content

Commit 3dfa509

Browse files
committed
pyright to 3.11
1 parent 29c2c53 commit 3dfa509

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
# supported by your project here, or alternatively use
2626
# pre-commit's default_language_version, see
2727
# https://pre-commit.com/#top_level-default_language_version
28-
language_version: python3.10
28+
language_version: python3.11
2929
args: [--line-length=79]
3030

3131
- repo: https://github.com/RobertCraigie/pyright-python

tests/object_detection/test_evaluator.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,12 @@ def test_evaluator_loading_using_torch_metrics_example(
192192
original_evaluator = loader.finalize()
193193
loaded_evaluator = Evaluator.load(path=tmp_path)
194194

195-
kwargs = dict(
196-
score_thresholds=[0.25, 0.5, 0.75, 0.9],
197-
iou_thresholds=[0.1, 0.25, 0.5, 0.75],
198-
)
195+
score_thresholds = [0.25, 0.5, 0.75, 0.9]
196+
iou_thresholds = [0.1, 0.25, 0.5, 0.75]
199197
assert original_evaluator.compute_precision_recall(
200-
**kwargs
201-
) == loaded_evaluator.compute_precision_recall(**kwargs)
198+
score_thresholds=score_thresholds,
199+
iou_thresholds=iou_thresholds,
200+
) == loaded_evaluator.compute_precision_recall(
201+
score_thresholds=score_thresholds,
202+
iou_thresholds=iou_thresholds,
203+
)

0 commit comments

Comments
 (0)