class documentation

class Attribute: (source)

View In Hierarchy

Represents a class member variable. Members: name: field name typ: field python type init: Whether the field should be included in the generated __init__ kw_only: Whether the field is kw_only in the generated __init__ default: Default value kind: Kind of attribute (see the AttributeKinds enum) Used in metadata (see Class.metadata below).

Class Method from_param Undocumented
Class Method from_pytd_constant Generate an Attribute from a pytd.Constant.
Method __repr__ Undocumented
Method to_pytd_constant Undocumented
Class Variable default Undocumented
Class Variable init Undocumented
Class Variable init_type Undocumented
Class Variable kind Undocumented
Class Variable kw_only Undocumented
Class Variable name Undocumented
Class Variable pytd_const Undocumented
Class Variable typ Undocumented
@classmethod
def from_param(cls, param, ctx): (source)

Undocumented

@classmethod
def from_pytd_constant(cls, const, ctx, *, kw_only=False): (source)

Generate an Attribute from a pytd.Constant.

def __repr__(self): (source)

Undocumented

def to_pytd_constant(self): (source)

Undocumented

Undocumented

Undocumented

init_type: Any = (source)

Undocumented

Undocumented

Undocumented

Undocumented

pytd_const: Any = (source)

Undocumented

Undocumented