Skip to content

Commit

Permalink
Rename to BenchmarkFileData
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffersGlass committed Apr 18, 2024
1 parent 81cf784 commit b899855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snakeden/_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class FileMetadata(typing.TypedDict):
timer : typing.NotRequired[str]
unit : str

class BenchmarkFile(typing.TypedDict):
class BenchmarkFileData(typing.TypedDict):
benchmarks: list[BenchmarkInnerDict]
metadata: FileMetadata
version: str
Expand All @@ -58,7 +58,7 @@ class BuildOptions(typing.NamedTuple):
jit: bool
pgo: bool

def get_benchmark_build_options(data : BenchmarkFile) -> BuildOptions:
def get_benchmark_build_options(data : BenchmarkFileData) -> BuildOptions:
commit = Commit(data['metadata']['python_version'].split(' ')[-1])
flags = data['metadata']['python_cflags']
jit = 'enable-experimental-jit' in flags
Expand Down

0 comments on commit b899855

Please sign in to comment.