BoundMetaclass

class BoundMetaclass

A cheap-to-constructor surrogate for metadata features

Members defined in BoundMetaclass (2 members)

element

R

The element this metadata applies to.

metaclass

R

The metaclass this metadata is typed by.

Attributes

property element: syside.Element

The element this metadata applies to.

This is equivalent to .annotated_element.

property metaclass: syside.Type | None

The metaclass this metadata is typed by.

This is equivalent to .metaclass of metadata features. Presence of metaclass depends on the standard library cache used to construct this BoundMetaclass. It is optional, because reflection is implemented based on the element type alone.

Used in