fix(build123d): fix pyright errors

This commit is contained in:
2026-04-27 20:53:55 -05:00
parent 0bd8cd1fb8
commit b28ed8c20f
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -107,6 +107,10 @@
packages = [
pyEnv
];
shellHook = ''
export PYTHONPATH="${pyEnv}/${pyEnv.sitePackages}:$PYTHONPATH"
'';
}
// cfg.devShell.extraAttrs);
+3 -1
View File
@@ -1,8 +1,10 @@
from build123d import * # pyright: ignore[reportWildcardImportFromLibrary]
# pyright: reportUnusedCallResult=false, reportWildcardImportFromLibrary=false
from build123d import *
length, width, thickness = 80.0, 60.0, 10.0
with BuildPart() as builder:
Box(length, width, thickness)
assert builder.part is not None
export_step(builder.part, "output.step")