Fix bug for python<3.8
list[str] for typing was introduced in Python 3.9.
+from typing import List
import pytest
import numpy as np
@@ -11,7 +12,7 @@ except ModuleNotFoundError as err:
HAVE_NUMBA = False
-def test_correlograms(recording, sorting, window_ms: float, bin_ms: float, methods: list[str]):
+def test_correlograms(recording, sorting, window_ms: float, bin_ms: float, methods: List[str]):
for method in methods:
correlograms, bins = st.compute_correlograms(sorting, window_ms=window_ms, bin_ms=bin_ms, symmetrize=True, method=method)
