Currently, the dtype of node and edge attributes is inferred from the default value provided. It could be helpful to specify an explicit dtype to manage situations where the default value's type may differ from the target object's type (for example, None versus Mask).