Skip to content

Commit

Permalink
avoid invalid pytype directive syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Schrock <[email protected]>
  • Loading branch information
spencerschrock committed Jan 16, 2025
1 parent 84ac915 commit 1e13597
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions benchmarks/exp_chunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ def build_parser() -> argparse.ArgumentParser:
def _default_sizes() -> list[int]:
# 0 is a special value to (attempt to) read whole files into RAM
# then powers of 2 between 1KB and 1GB
return (
[0] + [2**i for i in range(10, 31)]
) # pytype: disable=bad-return-type (https://github.com/google/pytype/issues/795)

# https://github.com/google/pytype/issues/795
# pytype: disable=bad-return-type
return [0] + [2**i for i in range(10, 31)]
# pytype: enable=bad-return-type


if __name__ == "__main__":
Expand Down

0 comments on commit 1e13597

Please sign in to comment.