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 79537ec commit 79d416cCopy full SHA for 79d416c
piccolo/columns/base.py
@@ -259,7 +259,7 @@ def _validate_default(
259
"""
260
Make sure that the default value is of the allowed types.
261
262
- if getattr(self, "validated", None):
+ if getattr(self, "_validated", None):
263
# If it has previously been validated by a subclass, don't
264
# validate again.
265
return True
@@ -268,10 +268,10 @@ def _validate_default(
268
and None in allowed_types
269
or type(default) in allowed_types
270
):
271
- self.validated = True
+ self._validated = True
272
273
elif callable(default):
274
275
276
else:
277
raise ValueError(
0 commit comments