Skip to content

Commit

Permalink
Merge pull request #968 from CoffeaTeam/typing-chores
Browse files Browse the repository at this point in the history
chore: better defaults and typing
  • Loading branch information
lgray authored Dec 14, 2023
2 parents 6f7eb45 + bc47183 commit 0be861a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/coffea/dataset_tools/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ def _get_steps(
align_clusters: bool = False,
recalculate_seen_steps: bool = False,
skip_bad_files: bool = False,
file_exceptions: Exception
| Warning
| tuple[Exception | Warning] = (FileNotFoundError, OSError),
file_exceptions: Exception | Warning | tuple[Exception | Warning] = (OSError,),
) -> awkward.Array | dask_awkward.Array:
"""
Given a list of normalized file and object paths (defined in uproot), determine the steps for each file according to the supplied processing options.
Expand Down Expand Up @@ -168,7 +166,7 @@ def preprocess(
recalculate_seen_steps: bool = False,
files_per_batch: int = 1,
skip_bad_files: bool = False,
file_exceptions: Exception | Warning = (FileNotFoundError, OSError),
file_exceptions: Exception | Warning | tuple[Exception | Warning] = (OSError,),
) -> tuple[FilesetSpec, FilesetSpecOptional]:
"""
Given a list of normalized file and object paths (defined in uproot), determine the steps for each file according to the supplied processing options.
Expand Down

0 comments on commit 0be861a

Please sign in to comment.