From c3e1db11ef4f29b482313dce3716b6939099569c Mon Sep 17 00:00:00 2001 From: Hassan Kibirige Date: Tue, 10 Dec 2024 18:07:12 +0300 Subject: [PATCH] TYP: Fix new static typing failures --- plotnine/guides/guides.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plotnine/guides/guides.py b/plotnine/guides/guides.py index 125c37dbe..ba1802cd5 100644 --- a/plotnine/guides/guides.py +++ b/plotnine/guides/guides.py @@ -467,7 +467,7 @@ def _lrtb(pos): if just is None: just = (0.5, 0.5) elif just in VALID_JUSTIFICATION_WORDS: - just = ensure_xy_location(just) + just = ensure_xy_location(just) # pyright: ignore[reportArgumentType] elif isinstance(just, (float, int)): just = (just, just) return just[idx] diff --git a/pyproject.toml b/pyproject.toml index d4021ccfd..600e6b9c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,7 +77,7 @@ dev = [ ] typing = [ - "pyright==1.1.389", + "pyright==1.1.390", "ipython", "pandas-stubs", ]