Skip to content

Commit 88ff84e

Browse files
committed
build: bump pyright to 1.1.410 and update ignore comments
1 parent ef74fd3 commit 88ff84e

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

plotnine/facets/facet_grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def compute_layout(self, data: list[pd.DataFrame]) -> pd.DataFrame:
189189

190190
n = len(base)
191191
panel = ninteraction(base, drop=True)
192-
panel = pd.Categorical(panel, categories=range(1, n + 1)) # pyright: ignore[reportArgumentType]
192+
panel = pd.Categorical(panel, categories=range(1, n + 1))
193193

194194
if self.rows:
195195
rows = ninteraction(base[self.rows], drop=True)

plotnine/facets/facet_wrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def compute_layout(
115115

116116
layout = pd.DataFrame(
117117
{
118-
"PANEL": pd.Categorical(range(1, n + 1)), # pyright: ignore[reportArgumentType]
118+
"PANEL": pd.Categorical(range(1, n + 1)),
119119
"ROW": row.astype(int),
120120
"COL": col.astype(int),
121121
}

plotnine/mapping/_eval_environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def factor(
4848
`categories` attribute (which in turn is the `categories` argument, if
4949
provided).
5050
"""
51-
return pd.Categorical(values, categories=categories, ordered=None) # pyright: ignore[reportArgumentType]
51+
return pd.Categorical(values, categories=categories, ordered=None) # pyright: ignore[reportReturnType]
5252

5353

5454
def reorder(x, y, fun=np.median, ascending=True):

plotnine/scales/scale_discrete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def view(
156156
range = self.dimension(limits=limits)
157157

158158
breaks_d = self.get_breaks(limits)
159-
breaks = self.map(pd.Categorical(breaks_d)) # pyright: ignore[reportArgumentType]
159+
breaks = self.map(pd.Categorical(breaks_d)) # pyright: ignore[reportCallIssue,reportArgumentType]
160160
minor_breaks = []
161161
labels = self.get_labels(breaks_d)
162162

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ dev = [
8484
]
8585

8686
typing = [
87-
"pyright==1.1.408",
87+
"pyright==1.1.410",
8888
"ipython",
8989
"pandas-stubs",
9090
]

0 commit comments

Comments
 (0)