@@ -148,9 +148,6 @@ class MultiArityFn(BaseCode):
148148
149149 _immutable_fields_ = ["_arities[*]" , "_required_arity" , "_rest_fn" ]
150150
151- def type (self ):
152- return MultiArityFn ._type
153-
154151 def __init__ (self , name , arities , required_arity = 0 , rest_fn = None , meta = nil ):
155152 BaseCode .__init__ (self )
156153 self ._name = name
@@ -199,9 +196,6 @@ class NativeFn(BaseCode):
199196 def __init__ (self , doc = None ):
200197 BaseCode .__init__ (self )
201198
202- def type (self ):
203- return NativeFn ._type
204-
205199 def invoke (self , args ):
206200 return self .inner_invoke (args )
207201
@@ -217,9 +211,6 @@ class Code(BaseCode):
217211 _type = object .Type (u"pixie.stdlib.Code" )
218212 _immutable_fields_ = ["_arity" , "_consts[*]" , "_bytecode" , "_stack_size" , "_meta" , "_debug_points" ]
219213
220- def type (self ):
221- return Code ._type
222-
223214 def __init__ (self , name , arity , bytecode , consts , stack_size , debug_points , meta = nil ):
224215 BaseCode .__init__ (self )
225216 self ._arity = arity
@@ -277,9 +268,6 @@ class VariadicCode(BaseCode):
277268 _immutable_fields_ = ["_required_arity" , "_code" , "_meta" ]
278269 _type = object .Type (u"pixie.stdlib.VariadicCode" )
279270
280- def type (self ):
281- return VariadicCode ._type
282-
283271 def __init__ (self , code , required_arity , meta = nil ):
284272 BaseCode .__init__ (self )
285273 self ._required_arity = r_uint (required_arity )
@@ -319,9 +307,6 @@ class Closure(BaseCode):
319307 _type = object .Type (u"pixie.stdlib.Closure" )
320308 _immutable_fields_ = ["_closed_overs[*]" , "_code" , "_meta" ]
321309
322- def type (self ):
323- return Closure ._type
324-
325310 def __init__ (self , code , closed_overs , meta = nil ):
326311 BaseCode .__init__ (self )
327312 affirm (isinstance (code , Code ), u"Code argument to Closure must be an instance of Code" )
@@ -373,9 +358,6 @@ def get_debug_points(self):
373358class Undefined (object .Object ):
374359 _type = object .Type (u"pixie.stdlib.Undefined" )
375360
376- def type (self ):
377- return Undefined ._type
378-
379361undefined = Undefined ()
380362
381363
@@ -413,9 +395,6 @@ class Var(BaseCode):
413395 _type = object .Type (u"pixie.stdlib.Var" )
414396 _immutable_fields_ = ["_ns_ref" ]
415397
416- def type (self ):
417- return Var ._type
418-
419398 def __init__ (self , ns_ref , ns , name ):
420399 BaseCode .__init__ (self )
421400 self ._ns_ref = ns_ref
@@ -497,9 +476,6 @@ class Namespace(object.Object):
497476
498477 _immutable_fields_ = ["_rev?" ]
499478
500- def type (self ):
501- return Namespace ._type
502-
503479 def __init__ (self , name ):
504480 self ._rev = 0
505481 self ._registry = {}
@@ -636,9 +612,6 @@ class Protocol(object.Object):
636612
637613 _immutable_fields_ = ["_rev?" ]
638614
639- def type (self ):
640- return Protocol ._type
641-
642615 def __init__ (self , name ):
643616 self ._name = name
644617 self ._polyfns = {}
@@ -663,9 +636,6 @@ def satisfies(self, tp):
663636class PolymorphicFn (BaseCode ):
664637 _type = object .Type (u"pixie.stdlib.PolymorphicFn" )
665638
666- def type (self ):
667- return PolymorphicFn ._type
668-
669639 _immutable_fields_ = ["_rev?" ]
670640
671641 def __init__ (self , name , protocol ):
@@ -745,9 +715,6 @@ class DoublePolymorphicFn(BaseCode):
745715 """A function that is polymorphic on the first two arguments"""
746716 _type = object .Type (u"pixie.stdlib.DoublePolymorphicFn" )
747717
748- def type (self ):
749- return DefaultProtocolFn ._type
750-
751718 _immutable_fields_ = ["_rev?" ]
752719
753720 def __init__ (self , name , protocol ):
0 commit comments