We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 375626b commit 897084cCopy full SHA for 897084c
1 file changed
bin/api.sh
@@ -2,10 +2,13 @@
2
uv run stubgen --include-private -p appose -o api/
3
uv run stubgen --include-private -o api tests/*.py
4
5
-# Strip leading import statements -- not needed for
6
-# API comparison with other Appose implementations.
+# Transform .pyi inputs to .api outputs.
+# The .api files are merely lightly postprocessed stub files to
7
+# make them easily diffable with other Appose implementations.
8
find api -name '*.pyi' | while read pyi
9
do
- mv "$pyi" "$pyi.original"
10
- sed -e '/^from /d' -e '/^import /d' "$pyi.original" > "$pyi"
+ sed \
11
+ -e '/^from /d' -e '/^import /d' \
12
+ -e "s/'Task'/Task/g" \
13
+ "$pyi" > "${pyi%.pyi}.api"
14
done
0 commit comments