We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 462aa42 commit 6254e18Copy full SHA for 6254e18
1 file changed
bin/api.sh
@@ -1,4 +1,19 @@
1
#!/bin/sh
2
+
3
+cd "$(dirname "$0")/.."
4
5
+# Check for required cross-implementation script.
6
+postprocessScript="../appose/bin/postprocess-api.py"
7
+if [ ! -f "$postprocessScript" ]; then
8
+ echo "Error: $postprocessScript not found" >&2
9
+ echo "Please ensure appose repository is cloned as a sibling directory." >&2
10
+ exit 1
11
+fi
12
13
+# Clean old API files.
14
+rm -rf api
15
16
+# Generate pyi API stubs.
17
uv run stubgen --include-private -p appose -o api/
18
uv run stubgen --include-private -o api tests/*.py tests/*/*.py
19
@@ -13,5 +28,9 @@ do
28
"$pyi" > "${pyi%.pyi}.api"
29
rm "$pyi"
30
done
31
32
# Remove empty files.
33
find api -size 0 -exec rm "{}" \;
34
35
+# Post-process API: normalize | None to ?, expand optional parameters.
36
+python3 "$postprocessScript" api
0 commit comments