Skip to content

Commit a5d9511

Browse files
fix: deprecated use of traitlets
1 parent 150ff1c commit a5d9511

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/scripts/prop-types.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ class UniformDict extends DictType {
448448
const nullableStr = this.getNullableStr();
449449
return `Dict(default_value=${
450450
this.getPythonDefaultValue()
451-
}, trait=Uniform(allow_none=True), ${
451+
}, value_trait=Uniform(allow_none=True), ${
452452
nullableStr
453453
})${this.getTagString()}`;
454454
}

pythreejs/traits.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class Uniform(Dict):
266266
"""A dict holding uniforms for a ShaderMaterial"""
267267

268268
def __init__(self, default_value=Undefined, **kwargs):
269-
super(Uniform, self).__init__(traits=dict(
269+
super(Uniform, self).__init__(per_key_traits=dict(
270270
value=Union((
271271
Int(), Float(), Color(), Instance('pythreejs.Texture'),
272272
List(trait=Union((

0 commit comments

Comments
 (0)