Ship the PEP 561 marker with the typed package
This commit is contained in:
parent
85355bce11
commit
c5aa8406e1
3 changed files with 5 additions and 4 deletions
1
great_ai/py.typed
Normal file
1
great_ai/py.typed
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
from pathlib import Path
|
||||
from typing import Dict, List, Optional, TypeVar, cast
|
||||
from typing import Dict, Optional, Sequence, TypeVar, cast
|
||||
|
||||
import matplotlib
|
||||
import matplotlib.pyplot as plt
|
||||
|
|
@ -14,8 +14,8 @@ T = TypeVar("T", str, float)
|
|||
|
||||
|
||||
def evaluate_ranking(
|
||||
expected: List[T],
|
||||
actual_scores: List[float],
|
||||
expected: Sequence[T],
|
||||
actual_scores: Sequence[float],
|
||||
target_recall: float,
|
||||
title: Optional[str] = "",
|
||||
disable_interpolation: bool = False,
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ def test_flattening_preserves_reserved_trace_fields() -> None:
|
|||
|
||||
|
||||
def test_mongo_update_uses_valid_replacement() -> None:
|
||||
trace = Trace(
|
||||
trace: Trace = Trace(
|
||||
trace_id="id",
|
||||
created="2026-01-01",
|
||||
original_execution_time_ms=0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue