Skip to content

Commit 9c7276a

Browse files
author
Shane Snyder
committed
fix some typing hints
1 parent a4aef23 commit 9c7276a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

darshan-util/pydarshan/darshan/cli/summary.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from collections import OrderedDict
88
import importlib.resources as importlib_resources
99

10-
from typing import Any, Union, Callable, List
10+
from typing import Any, Union, Callable, List, Optional
1111

1212
import pandas as pd
1313
from mako.template import Template
@@ -142,7 +142,7 @@ class ReportData:
142142
143143
"""
144144
def __init__(self, log_path: str, enable_dxt_heatmap: bool = False,
145-
filter_patterns: List[str] = None, filter_mode: str = "exclude"):
145+
filter_patterns: Optional[List[str]] = None, filter_mode: str = "exclude"):
146146
# store the log path and use it to generate the report
147147
self.log_path = log_path
148148
self.enable_dxt_heatmap = enable_dxt_heatmap
@@ -711,7 +711,7 @@ def main(args: Union[Any, None] = None):
711711
log_path = args.log_path
712712
enable_dxt_heatmap = args.enable_dxt_heatmap
713713
filter_patterns=None
714-
filter_mode=None
714+
filter_mode="exclude"
715715
if args.exclude_names and args.include_names:
716716
print('Error: only one of --exclude-names and --include-names may be used.')
717717
sys.exit(1)

0 commit comments

Comments
 (0)