Commits

Lars Wassermann committed 6b77a8d

(cfbolz): added the correct hints to the preliminary type-hinting

  • Participants
  • Parent commits d9517a4

Comments (0)

Files changed (1)

File spyvm/fieldtypes.py

         w_obj._vars[n0] = w_val
 
 class FieldTypes(VarSizedFieldTypes):
-    _immutable_fields_ = ['types']
+    _immutable_fields_ = ['types[*]']
     _attrs_ = ['types', 'parent', 'siblings', 'diff']
     _settled_ = True
 
             w_object.fieldtypes = self.sibling(n0, changed_type)
         w_object._vars[n0] = w_value
 
-
+    @jit.elidable
     def sibling(self, n0, changed_type):
         assert self.types[n0] is not changed_type
         change = (n0, changed_type)
 
 
     @staticmethod
+    @jit.elidable
     def of_length(n):
         if n not in maps:
             maps[n] = FieldTypes([obj] * n)