Skip to content

Commit 377ee83

Browse files
committed
TYP: Remove unnecessary type ignore
Caused by newer version of pandas-stubs.
1 parent 2fc174d commit 377ee83

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

plotnine/stats/stat.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,7 @@ def compute_panel(self, data: pd.DataFrame, scales: pos_scales):
337337
unique = uniquecols(old)
338338
missing = unique.columns.difference(new.columns)
339339
idx = [0] * len(new)
340-
u = unique.loc[idx, missing].reset_index( # pyright: ignore
341-
drop=True
342-
)
340+
u = unique.loc[idx, missing].reset_index(drop=True)
343341
# concat can have problems with empty dataframes that
344342
# have an index
345343
if u.empty and len(u):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ dev = [
8181
]
8282

8383
typing = [
84-
"pyright==1.1.403",
84+
"pyright==1.1.404",
8585
"ipython",
8686
"pandas-stubs",
8787
]

0 commit comments

Comments
 (0)