Skip to content

Commit

Permalink
fix mypy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm committed Oct 2, 2023
1 parent 5e463ba commit d10baeb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runners/s3-benchrunner-cli/benchrunner.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
import argparse
import boto3
import boto3 # type: ignore
from dataclasses import dataclass
import json
import os
Expand All @@ -10,7 +10,7 @@
import sys
import tempfile
import time
from typing import Optional
from typing import Optional, Tuple

PARSER = argparse.ArgumentParser(
description='Benchmark runner for AWS CLI')
Expand Down Expand Up @@ -127,7 +127,7 @@ def _derive_cli_config(self) -> str:
''] # blank line at end of file
return '\n'.join(lines)

def _derive_cli_cmd(self) -> (list[str], Optional[str]):
def _derive_cli_cmd(self) -> Tuple[list[str], Optional[bytes]]:
"""
Figures out single CLI command that will do everything in the benchmark.
Exits with skip code if we can't do this benchmark in one CLI command.
Expand All @@ -138,7 +138,7 @@ def _derive_cli_cmd(self) -> (list[str], Optional[str]):
first_task = self.config.tasks[0]

cmd = ['aws', 's3', 'cp']
stdin = None
stdin: Optional[bytes] = None

if num_tasks == 1:
# doing 1 file is simple, just name the src and dst
Expand Down

0 comments on commit d10baeb

Please sign in to comment.