Skip to content

Commit be1d66f

Browse files
committed
TYP: Fix new typechecking failures
1 parent 4794d98 commit be1d66f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plotnine/_utils/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ def len_unique(x):
310310

311311
combs = np.array(np.hstack([1, np.cumprod(ndistinct[:-1])]))
312312
mat = np.array(ids)
313-
res = (mat - 1) @ combs.T + 1
314-
res = np.array(res).flatten().tolist()
313+
_res = (mat - 1) @ combs.T + 1
314+
res: list[int] = np.array(_res).flatten().tolist()
315315

316316
if drop:
317317
return _id_var(res, drop)

plotnine/guides/guides.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def _lrtb(pos):
467467
if just is None:
468468
just = (0.5, 0.5)
469469
elif just in VALID_JUSTIFICATION_WORDS:
470-
just = ensure_xy_location(just) # pyright: ignore[reportArgumentType]
470+
just = ensure_xy_location(just)
471471
elif isinstance(just, (float, int)):
472472
just = (just, just)
473473
return just[idx]

0 commit comments

Comments
 (0)