(*attributes_and_children: Any, **kwargs: Any)
| 220 | """ |
| 221 | |
| 222 | def constructor(*attributes_and_children: Any, **kwargs: Any) -> VdomDict: |
| 223 | model = vdom(tag, *attributes_and_children, **kwargs) |
| 224 | if not allow_children and "children" in model: |
| 225 | msg = f"{tag!r} nodes cannot have children." |
| 226 | raise TypeError(msg) |
| 227 | if import_source: |
| 228 | model["importSource"] = import_source |
| 229 | return model |
| 230 | |
| 231 | # replicate common function attributes |
| 232 | constructor.__name__ = tag |
no test coverage detected