PyDoc: make examples self contained, resolve type warnings

Some examples were missing missing imports,
resolve some mypy warnings.
This commit is contained in:
Campbell Barton 2026-02-12 00:25:15 +00:00
parent 73940408bb
commit 084333edb0
11 changed files with 53 additions and 10 deletions

View file

@ -47,7 +47,7 @@ del shader_info
coords = [Vector((random(), random(), random())) * 5 for _ in range(5)]
arc_lengths = [0]
arc_lengths = [0.0]
for a, b in zip(coords[:-1], coords[1:]):
arc_lengths.append(arc_lengths[-1] + (a - b).length)