"vscode:/vscode.git/clone" did not exist on "c0c584231b58c14e318bd79b2cf2104ec6e96a25"
Commit 7684bfa9 authored by haileyschoelkopf's avatar haileyschoelkopf
Browse files

fix typehints in Instance()

parent 04c81e7d
...@@ -4,13 +4,13 @@ from typing import Literal, Tuple ...@@ -4,13 +4,13 @@ from typing import Literal, Tuple
@dataclass @dataclass
class Instance: class Instance:
request_type: str = Literal[ request_type: Literal["loglikelihood", "loglikelihood_rolling", "greedy_until"]
"loglikelihood", "loglikelihood_rolling", "greedy_until" doc: dict
] arguments: tuple
doc: dict = None idx: int
arguments: tuple = None metadata: Tuple[str, int, int] = field(
idx: int = None default_factory=lambda: (None, None, None)
metadata: tuple = Tuple[str, int, int] # TODO: better typehints here ) # TODO: better typehints here
resps: list = field(default_factory=list) resps: list = field(default_factory=list)
filtered_resps: dict = field(default_factory=dict) filtered_resps: dict = field(default_factory=dict)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment