Skip to content

Commit

Permalink
Merge pull request #3374 from alejoe91/minor-typing
Browse files Browse the repository at this point in the history
Minor typing fixes
  • Loading branch information
alejoe91 authored Sep 10, 2024
2 parents fede210 + 5775c36 commit c240155
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spikeinterface/core/core_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def is_dict_extractor(d: dict) -> bool:
extractor_dict_element = namedtuple(typename="extractor_dict_element", field_names=["value", "name", "access_path"])


def extractor_dict_iterator(extractor_dict: dict) -> Generator[extractor_dict_element]:
def extractor_dict_iterator(extractor_dict: dict) -> Generator[extractor_dict_element, None, None]:
"""
Iterator for recursive traversal of a dictionary.
This function explores the dictionary recursively and yields the path to each value along with the value itself.
Expand Down
2 changes: 1 addition & 1 deletion src/spikeinterface/core/recording_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _init_binary_worker(recording, file_path_dict, dtype, byte_offest, cast_unsi
def write_binary_recording(
recording: "BaseRecording",
file_paths: list[Path | str] | Path | str,
dtype: np.ndtype = None,
dtype: np.typing.DTypeLike = None,
add_file_extension: bool = True,
byte_offset: int = 0,
auto_cast_uint: bool = True,
Expand Down

0 comments on commit c240155

Please sign in to comment.