Skip to content

Commit 5dd8eb3

Browse files
Update pythreejs.py to silence traitlets warning
Traitlets warning encountered: ...\site-packages\pythreejs\pythreejs.py:56 C:\Users\genevieb\AppData\Local\conda\conda\envs\ipyvolume-dev\lib\site-packages\pythreejs\pythreejs.py:56: DeprecationWarning: Traits should be given as instances, not types (for example, `Int()`, not `Int`). Passing types is deprecated in traitlets 4.1. z = List(CFloat, [0] * 100) -- Docs: https://docs.pytest.org/en/latest/warnings.html
1 parent 462efa8 commit 5dd8eb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythreejs/pythreejs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class SurfaceGeometry(BufferGeometry):
5353
"""
5454
A regular grid with heights
5555
"""
56-
z = List(CFloat, [0] * 100)
56+
z = List(CFloat(), [0] * 100)
5757
width = CInt(10)
5858
height = CInt(10)
5959
width_segments = CInt(10, read_only=True)

0 commit comments

Comments
 (0)