From 62ce328d3e621b7b977e05b07b673e9de3cfb0b2 Mon Sep 17 00:00:00 2001 From: Barret Schloerke Date: Tue, 18 Jun 2024 10:41:42 -0400 Subject: [PATCH 1/3] Use numpy >= 2.0.0 --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index ed952443f..e1e2722ba 100644 --- a/setup.cfg +++ b/setup.cfg @@ -107,7 +107,7 @@ dev = matplotlib pandas pandas-stubs - numpy + numpy>=2.0.0 shinyswatch>=0.2.4 doc = jupyter From e365a4a4da58e9842cd02e71905f50ba8de8842f Mon Sep 17 00:00:00 2001 From: Barret Schloerke Date: Tue, 18 Jun 2024 10:41:59 -0400 Subject: [PATCH 2/3] Use `np.nan` not, `NaN` https://github.com/numpy/numpy/pull/24376 --- shiny/plotutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shiny/plotutils.py b/shiny/plotutils.py index 3c60eeb96..aba9e69ef 100644 --- a/shiny/plotutils.py +++ b/shiny/plotutils.py @@ -225,7 +225,7 @@ def near_points( # For no current coordinfo if coordinfo is None: if add_dist: - new_df["dist"] = np.NaN + new_df["dist"] = np.nan if all_rows: new_df["selected_"] = False From d88d8df89daaa630a4d6b9533613235cc09eb833 Mon Sep 17 00:00:00 2001 From: Barret Schloerke Date: Tue, 18 Jun 2024 11:01:43 -0400 Subject: [PATCH 3/3] Remove numpy version requirement as `np.nan` has always existed --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index e1e2722ba..ed952443f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -107,7 +107,7 @@ dev = matplotlib pandas pandas-stubs - numpy>=2.0.0 + numpy shinyswatch>=0.2.4 doc = jupyter