gdsfactory.typings.ComponentSpec

Contents

gdsfactory.typings.ComponentSpec#

gdsfactory.typings.ComponentSpec = str | collections.abc.Callable[..., gdsfactory.component.Component] | gdsfactory.component.Component | dict[str, typing.Any]#

Represent a PEP 604 union type

E.g. for int | str