Skip to content

Commit

Permalink
reg: fix type annotations for Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Apr 1, 2024
1 parent abc9c44 commit 1b2769f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions dclab/cli/task_repack.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Repack (similar to h5repack) .rtdc files"""
from __future__ import annotations

import argparse
import pathlib

Expand Down
13 changes: 10 additions & 3 deletions dclab/cli/task_split.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Split an .rtdc file into smaller .rtdc files"""
from __future__ import annotations

import argparse
import pathlib
import warnings
Expand All @@ -11,9 +13,14 @@
from . import common


def split(path_in=None, path_out=None, split_events=10000,
skip_initial_empty_image=True, skip_final_empty_image=True,
ret_out_paths=False, verbose=False):
def split(
path_in: str | pathlib.Path = None,
path_out: str | pathlib.Path = None,
split_events: int = 10000,
skip_initial_empty_image: bool = True,
skip_final_empty_image: bool = True,
ret_out_paths: bool = False,
verbose: bool = False):
"""Split a measurement file
Parameters
Expand Down

0 comments on commit 1b2769f

Please sign in to comment.