Lines Matching defs:__init__
53 # __init__
58 # | no | yes | <--- class has __init__ in __dict__?
169 # tuple of __init__ parameter names; non-init fields must be matched by keyword.
201 def __init__(self, name):
218 # __init__.
249 def __init__(self, type):
267 # name and type are filled in after the fact, not in __init__.
287 def __init__(self, default, default_factory, init, repr, hash, compare,
346 def __init__(self, init, repr, eq, order, unsafe_hash, frozen):
374 is true, the field will be a parameter to the class's __init__()
381 __init__().
393 # Returns the fields as __init__ will output them. It returns 2 tuples:
438 # If we're a frozen class, then assign to our fields in __init__
450 # Return the text of the line in the body of __init__ that will
463 # This is a field that's not in the __init__ params, but
471 # default factory, the factory must be called in __init__
510 # Return the __init__ parameter string for this field. For
540 # Only consider the non-kw-only fields in the __init__ call.
580 return _create_fn('__init__',
1026 _set_new_attribute(cls, '__init__',
1033 # param in __init__. Use "self"
1209 If init is true, an __init__() method is added to the class. If repr
1299 # differently because a namedtuple's __init__ needs to be
1364 # differently because a namedtuple's __init__ needs to be
1496 # Create the new object, which calls __init__() and