Skip to content

Commit f2acb48

Browse files
committed
chore: remove unused import and obsolete pyright ignores
1 parent 1283313 commit f2acb48

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

plotnine/coords/coord.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
from plotnine import ggplot
1919
from plotnine.iapi import labels_view, layout_details, panel_view
20-
from plotnine.scales.scale import scale
2120
from plotnine.scales.scale_xy import ScaleX, ScaleY
2221
from plotnine.typing import (
2322
FloatArray,

plotnine/stats/stat_density.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def nrd0(x: FloatArrayLike) -> float:
294294
"Need at least 2 data points to compute the nrd0 bandwidth."
295295
)
296296

297-
std: float = np.std(x, ddof=1) # pyright: ignore
297+
std: float = np.std(x, ddof=1)
298298
std_estimate: float = iqr(x) / 1.349
299299
low_std = min(std, std_estimate)
300300
if low_std == 0:

plotnine/stats/stat_ellipse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def scale_simp(x: FloatArray, center: FloatArray, n: int, p: int):
205205
wt = wt[wt > 0]
206206
n, _ = x.shape
207207

208-
wt = wt[:, np.newaxis] # pyright: ignore[reportCallIssue,reportArgumentType,reportOptionalSubscript]
208+
wt = wt[:, np.newaxis]
209209

210210
# loc
211211
use_loc = False

0 commit comments

Comments
 (0)