Skip to content

Commit

Permalink
Minor typing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Sep 5, 2024
1 parent 24f0541 commit df9efc9
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
@@ -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.
2 changes: 1 addition & 1 deletion src/spikeinterface/core/recording_tools.py
Original file line number Diff line number Diff line change
@@ -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.dtype = None,
add_file_extension: bool = True,
byte_offset: int = 0,
auto_cast_uint: bool = True,

0 comments on commit df9efc9

Please sign in to comment.