Skip to content

module internal.types.type

Source: stdlib/internal/types/type.codon


type[T] @extend Class is extended to add given methods


TypeInfo

Fields

id: int

raw_name: str

nice_name: str

repr: Function[Ptr[byte], str]

Magic methods

__new__()

__raw__(self)

__init__(self, T: type)

__str__(self)

__repr__(self)

__eq__(self, other: TypeInfo)

__ne__(self, other: TypeInfo)

Methods

is_parent(self, T: type)

wrap(arg: Ptr[byte], T: type)


TypeWrap[T] @extend Class is extended to add given methods

Properties

__name__ @property Method is a class property

Magic methods

__new__(T: type)

__call_no_self__(*args, **kwargs)

__call__(self, *args, **kwargs)

__repr__(self)

__name__(self) @property Method is a class property