petsc4py.typing.LayoutSizeSpec#

petsc4py.typing.LayoutSizeSpec = int | tuple[int, int]#

int or 2-tuple of int describing the layout sizes.

A single int indicates global size. A tuple of int indicates (local_size, global_size).