Skip to content

Commit

Permalink
Minor fixes for pylance warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kyechou committed Nov 22, 2023
1 parent 600ffda commit 6ed4864
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions examples/logparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ def parse_main_log(output_dir, settings):

def parse_02_settings(output_dir):
settings = {
'apps': None,
'hosts': None,
'procs': None,
'drop_method': None,
'apps': 0,
'hosts': 0,
'procs': 0,
'drop_method': '',
'fault': False,
}
dirname = os.path.basename(output_dir)
Expand All @@ -73,11 +73,11 @@ def parse_02_settings(output_dir):

def parse_03_settings(output_dir):
settings = {
'lbs': None,
'servers': None,
'algorithm': None,
'procs': None,
'drop_method': None,
'lbs': 0,
'servers': 0,
'algorithm': '',
'procs': 0,
'drop_method': '',
}
dirname = os.path.basename(output_dir)
m = re.search(
Expand All @@ -94,10 +94,10 @@ def parse_03_settings(output_dir):

def parse_06_settings(output_dir):
settings = {
'tenants': None,
'updates': None,
'procs': None,
'drop_method': None,
'tenants': 0,
'updates': 0,
'procs': 0,
'drop_method': '',
}
dirname = os.path.basename(output_dir)
m = re.search(
Expand Down

0 comments on commit 6ed4864

Please sign in to comment.