Skip to content

Commit 79d416c

Browse files
committed
changed validated to _validated to reduce likelihood of a name clash
1 parent 79537ec commit 79d416c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

piccolo/columns/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def _validate_default(
259259
"""
260260
Make sure that the default value is of the allowed types.
261261
"""
262-
if getattr(self, "validated", None):
262+
if getattr(self, "_validated", None):
263263
# If it has previously been validated by a subclass, don't
264264
# validate again.
265265
return True
@@ -268,10 +268,10 @@ def _validate_default(
268268
and None in allowed_types
269269
or type(default) in allowed_types
270270
):
271-
self.validated = True
271+
self._validated = True
272272
return True
273273
elif callable(default):
274-
self.validated = True
274+
self._validated = True
275275
return True
276276
else:
277277
raise ValueError(

0 commit comments

Comments
 (0)