@@ -400,8 +400,8 @@ class CreatureDataHashableMixin:
400400 tail : bool = field (repr = False , default = True )
401401
402402 class Creature (CreatureDataMixin , EnumProperties ):
403- BEETLE = "small" , 6
404- DOG = "medium" , 4
403+ BEETLE = ( "small" , 6 )
404+ DOG = ( "medium" , 4 )
405405
406406 self .assertEqual (Creature .BEETLE .size , "small" )
407407 self .assertEqual (Creature .BEETLE .legs , 6 )
@@ -412,8 +412,8 @@ class Creature(CreatureDataMixin, EnumProperties):
412412 self .assertEqual (Creature .DOG .tail , True )
413413
414414 class CreatureEP (CreatureDataMixin , EnumProperties ):
415- BEETLE = "small" , 6
416- DOG = "medium" , 4 , False
415+ BEETLE = ( "small" , 6 )
416+ DOG = ( "medium" , 4 , False )
417417
418418 self .assertEqual (CreatureEP .BEETLE .size , "small" )
419419 self .assertEqual (CreatureEP .BEETLE .legs , 6 )
@@ -424,7 +424,7 @@ class CreatureEP(CreatureDataMixin, EnumProperties):
424424 self .assertEqual (CreatureEP .DOG .tail , False )
425425
426426 class CreatureHybrid (CreatureDataMixin , EnumProperties , s ("kingdom" )):
427- BEETLE = "small" , 6 , False , "insect"
427+ BEETLE = ( "small" , 6 , False ) , "insect"
428428 DOG = (
429429 (
430430 "medium" ,
@@ -449,7 +449,7 @@ class CreatureHybrid(CreatureDataMixin, EnumProperties, s("kingdom")):
449449 class CreatureHybridSpecialized (
450450 CreatureDataMixin , EnumProperties , s ("kingdom" )
451451 ):
452- BEETLE = "small" , 6 , "insect"
452+ BEETLE = ( "small" , 6 ) , "insect"
453453 DOG = ("medium" , 4 , False ), "mammal"
454454
455455 @specialize (BEETLE )
@@ -485,7 +485,7 @@ def function(self):
485485 class CreatureHybridSpecialized (
486486 CreatureDataHashableMixin , EnumProperties , s ("kingdom" )
487487 ):
488- BEETLE = "small" , 6 , "insect"
488+ BEETLE = ( "small" , 6 ) , "insect"
489489 DOG = (
490490 (
491491 "medium" ,
0 commit comments