pyqt_reactive.forms.widget_creation_registry
Shared annotation helpers for widget creation strategies.
Functions
|
Return the enum member from a union annotation, if one is present. |
|
Extract enum type from List[Enum]. |
|
Check if type is an Enum. |
|
Check if type is List[Enum]. |
|
Check whether a type annotation is a typing or PEP 604 union. |
|
Resolve Optional[T] to T. |
- pyqt_reactive.forms.widget_creation_registry.is_union_type(param_type: Type) bool[source]
Check whether a type annotation is a typing or PEP 604 union.
- pyqt_reactive.forms.widget_creation_registry.resolve_optional(param_type: Type) Type[source]
Resolve Optional[T] to T.
- pyqt_reactive.forms.widget_creation_registry.is_enum(param_type: Type) bool[source]
Check if type is an Enum.
- pyqt_reactive.forms.widget_creation_registry.enum_member_type(param_type: Type) Type | None[source]
Return the enum member from a union annotation, if one is present.