We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 518e124 commit 98e76eaCopy full SHA for 98e76ea
js/scripts/templates/py_enums.mustache
@@ -15,6 +15,9 @@ class EnumNamespace:
15
def __contains__(self, key):
16
return key in self.__dict__
17
18
+ def __iter__(self):
19
+ yield from filter(lambda e: not e.startswith('_'), dir(self))
20
+
21
def __repr__(self):
22
return str(list(filter(lambda e: not e.startswith('_'), dir(self))))
23
pythreejs/enums.py
@@ -15,6 +15,9 @@ def __init__(self, **kwargs):
0 commit comments