Skip to content

Commit 9b50c10

Browse files
committed
Make api.sh import filtering work with BSD sed
1 parent 0350d37 commit 9b50c10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/api.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ uv run stubgen --include-private -o api tests/*.py
77
find api -name '*.pyi' | while read pyi
88
do
99
mv "$pyi" "$pyi.original"
10-
sed '/^\(from\|import\) /d' "$pyi.original" > "$pyi"
10+
sed -e '/^from /d' -e '/^import /d' "$pyi.original" > "$pyi"
1111
done

0 commit comments

Comments
 (0)