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 5bb5924 commit 09ca954Copy full SHA for 09ca954
traitlets/traitlets.py
@@ -2616,6 +2616,9 @@ def from_string(self, s):
2616
else:
2617
raise ValueError("%r is not 1, 0, true, or false")
2618
2619
+ def subclass_init(self, cls):
2620
+ pass # fully opt out of instance_init
2621
+
2622
2623
class CBool(Bool):
2624
"""A casting version of the boolean trait."""
@@ -2667,6 +2670,9 @@ def from_string(self, s):
2667
2670
except TraitError:
2668
2671
return _safe_literal_eval(s)
2669
2672
2673
2674
2675
2676
2677
class CaselessStrEnum(Enum):
2678
"""An enum of strings where the case should be ignored."""
0 commit comments