Skip to content

Commit 58c9491

Browse files
authored
⬆️ support Python 3.11 (#150)
1 parent 46499ef commit 58c9491

File tree

4 files changed

+963
-757
lines changed

4 files changed

+963
-757
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ on:
1010
branches: [ main ]
1111

1212
jobs:
13-
build:
13+
test:
1414

1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
fail-fast: false
1818
matrix:
1919
os: ['windows-latest', 'macOS-latest', 'ubuntu-latest']
20-
python-version: ['3.7', '3.8', '3.9', '3.10']
20+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
2121
defaults:
2222
run:
2323
shell: bash

plotly_resampler/aggregation/algorithms/lttb_py.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def downsample(x: np.ndarray, y: np.ndarray, n_out) -> np.ndarray:
6565
sampled_x[-1] = x.shape[0] - 1
6666

6767
# Convert y to int if it is boolean
68-
if y.dtype == np.bool:
68+
if y.dtype == np.bool_:
6969
y = y.astype(np.int8)
7070

7171
a = 0

0 commit comments

Comments
 (0)