kirin.decl.info.AttributeField
← Module overview
class
method
source
classAttributeField¶source
kirin.decl.info.AttributeField
Bases: Field
Signature
class AttributeField(kw_only: bool, alias: Optional[str], default: Any, init: bool, repr: bool, default_factory: Optional[Callable[[], Attribute]], type: types.TypeAttribute, pytype: bool = False)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
kw_only | bool | required | |
alias | Optional[str] | required | |
default | Any | required | |
init | bool | required | |
repr | bool | required | |
default_factory | Optional[Callable[[], Attribute]] | required | |
type | types.TypeAttribute | required | |
pytype | bool | False |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
default | Any | required | |
init | bool | required | |
repr | bool | required | |
default_factory | Optional[Callable[[], Attribute]] | required | |
type | types.TypeAttribute | required | |
pytype | bool | False | if `True`, annotation is a python type hint instead of `TypeAttribute` |
methodhas_no_default¶source
kirin.decl.info.AttributeField.has_no_default
def has_no_default()