Skip to content

Commit ddebefa

Browse files
committed
add test to see if failures are picked up
1 parent 94a665c commit ddebefa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_groupby.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,3 +1121,8 @@ def add_constant_to_mean(group: DataFrame, constant: int) -> DataFrame:
11211121
),
11221122
DataFrame,
11231123
)
1124+
if TYPE_CHECKING_INVALID_USAGE:
1125+
df.groupby("group", group_keys=False)[["group", "value"]].apply(
1126+
add_constant_to_mean,
1127+
constant="5", # type: ignore[call-overload] # pyright: ignore[reportCallIssue, reportArgumentType]
1128+
)

0 commit comments

Comments
 (0)