fix(build123d): fix pyright errors
This commit is contained in:
@@ -107,6 +107,10 @@
|
|||||||
packages = [
|
packages = [
|
||||||
pyEnv
|
pyEnv
|
||||||
];
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
export PYTHONPATH="${pyEnv}/${pyEnv.sitePackages}:$PYTHONPATH"
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
// cfg.devShell.extraAttrs);
|
// cfg.devShell.extraAttrs);
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
length, width, thickness = 80.0, 60.0, 10.0
|
||||||
|
|
||||||
with BuildPart() as builder:
|
with BuildPart() as builder:
|
||||||
Box(length, width, thickness)
|
Box(length, width, thickness)
|
||||||
|
|
||||||
|
assert builder.part is not None
|
||||||
export_step(builder.part, "output.step")
|
export_step(builder.part, "output.step")
|
||||||
|
|||||||
Reference in New Issue
Block a user