mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
PyDoc: make examples self contained, resolve type warnings
Some examples were missing missing imports, resolve some mypy warnings.
This commit is contained in:
parent
73940408bb
commit
084333edb0
11 changed files with 53 additions and 10 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue