@@ -388,8 +388,6 @@ def __ne__(self, other):
388388class IndexProperty (_NotEqualMixin ):
389389 """Immutable object representing a single property in an index."""
390390
391- __slots__ = ("_name" , "_direction" )
392-
393391 @utils .positional (1 )
394392 def __new__ (cls , name , direction ):
395393 instance = super (IndexProperty , cls ).__new__ (cls )
@@ -426,8 +424,6 @@ def __hash__(self):
426424class Index (_NotEqualMixin ):
427425 """Immutable object representing an index."""
428426
429- __slots__ = ("_kind" , "_properties" , "_ancestor" )
430-
431427 @utils .positional (1 )
432428 def __new__ (cls , kind , properties , ancestor ):
433429 instance = super (Index , cls ).__new__ (cls )
@@ -475,8 +471,6 @@ def __hash__(self):
475471class IndexState (_NotEqualMixin ):
476472 """Immutable object representing an index and its state."""
477473
478- __slots__ = ("_definition" , "_state" , "_id" )
479-
480474 @utils .positional (1 )
481475 def __new__ (cls , definition , state , id ):
482476 instance = super (IndexState , cls ).__new__ (cls )
@@ -526,8 +520,6 @@ def __hash__(self):
526520
527521
528522class ModelAdapter (object ):
529- __slots__ = ()
530-
531523 def __new__ (self , * args , ** kwargs ):
532524 raise exceptions .NoLongerImplementedError ()
533525
@@ -796,8 +788,6 @@ def make_connection(*args, **kwargs):
796788class ModelAttribute (object ):
797789 """Base for classes that implement a ``_fix_up()`` method."""
798790
799- __slots__ = ()
800-
801791 def _fix_up (self , cls , code_name ):
802792 """Fix-up property name. To be implemented by subclasses.
803793
@@ -824,8 +814,6 @@ class _BaseValue(_NotEqualMixin):
824814 TypeError: If ``b_val`` is a list.
825815 """
826816
827- __slots__ = ("b_val" ,)
828-
829817 def __init__ (self , b_val ):
830818 if b_val is None :
831819 raise TypeError ("Cannot wrap None" )
@@ -2169,8 +2157,6 @@ class ModelKey(Property):
21692157 .. automethod:: _validate
21702158 """
21712159
2172- __slots__ = ()
2173-
21742160 def __init__ (self ):
21752161 super (ModelKey , self ).__init__ ()
21762162 self ._name = "__key__"
@@ -2253,8 +2239,6 @@ class BooleanProperty(Property):
22532239 .. automethod:: _validate
22542240 """
22552241
2256- __slots__ = ()
2257-
22582242 def _validate (self , value ):
22592243 """Validate a ``value`` before setting it.
22602244
@@ -2285,8 +2269,6 @@ class IntegerProperty(Property):
22852269 .. automethod:: _validate
22862270 """
22872271
2288- __slots__ = ()
2289-
22902272 def _validate (self , value ):
22912273 """Validate a ``value`` before setting it.
22922274
@@ -2318,8 +2300,6 @@ class FloatProperty(Property):
23182300 .. automethod:: _validate
23192301 """
23202302
2321- __slots__ = ()
2322-
23232303 def _validate (self , value ):
23242304 """Validate a ``value`` before setting it.
23252305
@@ -2602,8 +2582,6 @@ class Item(ndb.Model):
26022582 NotImplementedError: If ``indexed=True`` is provided.
26032583 """
26042584
2605- __slots__ = ()
2606-
26072585 def __init__ (self , * args , ** kwargs ):
26082586 indexed = kwargs .pop ("indexed" , False )
26092587 if indexed :
@@ -2732,8 +2710,6 @@ class StringProperty(TextProperty):
27322710 NotImplementedError: If ``indexed=False`` is provided.
27332711 """
27342712
2735- __slots__ = ()
2736-
27372713 def __init__ (self , * args , ** kwargs ):
27382714 indexed = kwargs .pop ("indexed" , True )
27392715 if not indexed :
@@ -2757,8 +2733,6 @@ class GeoPtProperty(Property):
27572733 .. automethod:: _validate
27582734 """
27592735
2760- __slots__ = ()
2761-
27622736 def _validate (self , value ):
27632737 """Validate a ``value`` before setting it.
27642738
@@ -2967,8 +2941,6 @@ class User(object):
29672941 UserNotFoundError: If ``email`` is empty.
29682942 """
29692943
2970- __slots__ = ("_auth_domain" , "_email" , "_user_id" )
2971-
29722944 def __init__ (self , email = None , _auth_domain = None , _user_id = None ):
29732945 if _auth_domain is None :
29742946 raise ValueError ("_auth_domain is required" )
@@ -3465,8 +3437,6 @@ class BlobKeyProperty(Property):
34653437 .. automethod:: _validate
34663438 """
34673439
3468- __slots__ = ()
3469-
34703440 def _validate (self , value ):
34713441 """Validate a ``value`` before setting it.
34723442
@@ -3685,8 +3655,6 @@ class DateProperty(DateTimeProperty):
36853655 .. automethod:: _validate
36863656 """
36873657
3688- __slots__ = ()
3689-
36903658 def _validate (self , value ):
36913659 """Validate a ``value`` before setting it.
36923660
@@ -3747,8 +3715,6 @@ class TimeProperty(DateTimeProperty):
37473715 .. automethod:: _validate
37483716 """
37493717
3750- __slots__ = ()
3751-
37523718 def _validate (self , value ):
37533719 """Validate a ``value`` before setting it.
37543720
0 commit comments